mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: quick fix for the network chart that does not fit value in the range 0-1 (charts in the Disks and Network popups)
This commit is contained in:
@@ -32,6 +32,9 @@ public struct circle_segment {
|
||||
|
||||
private func scaleValue(scale: Scale = .linear, value: Double, maxValue: Double, maxHeight: CGFloat) -> CGFloat {
|
||||
var value = value
|
||||
if scale == .none && value > 1 && maxValue != 0 {
|
||||
value /= maxValue
|
||||
}
|
||||
var localMaxValue = maxValue
|
||||
var y = value * maxHeight
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>387</string>
|
||||
<string>389</string>
|
||||
<key>Description</key>
|
||||
<string>Simple macOS system monitor in your menu bar</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
||||
Reference in New Issue
Block a user