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:
Serhiy Mytrovtsiy
2022-08-07 20:38:07 +02:00
parent a697d12545
commit 64d7e4e8bf
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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>