diff --git a/Modules/Sensors/values.swift b/Modules/Sensors/values.swift index 1bb86a45..ae5e0738 100644 --- a/Modules/Sensors/values.swift +++ b/Modules/Sensors/values.swift @@ -98,14 +98,8 @@ internal struct Sensor: Sensor_p { switch self.type { case .temperature: return Temperature(value).replacingOccurrences(of: "C", with: "").replacingOccurrences(of: "F", with: "") - case .voltage: - let val = value >= 10 ? "\(Int(value))" : String(format: "%.1f", value) - return "\(val)\(unit)" - case .power: - let val = value >= 10 ? "\(Int(value))" : String(format: "%.1f", value) - return "\(val)\(unit)" - case .current: - let val = value >= 10 ? "\(Int(value))" : String(format: "%.1f", value) + case .voltage, .power, .current: + let val = value >= 9.95 ? "\(Int(round(value)))" : String(format: "%.1f", value) return "\(val)\(unit)" case .fan: return "\(Int(value))" diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 84f01d21..ac09c101 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 378 + 383 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType