mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: adjust fans module width (#460)
This commit is contained in:
@@ -36,7 +36,7 @@ public class SensorsWidget: WidgetWrapper {
|
||||
}
|
||||
|
||||
if title == "Fans" { // hack for fans. Because fan value contain RPM.
|
||||
self.oneRowWidth = 66
|
||||
self.oneRowWidth = 64
|
||||
self.twoRowWidth = 50
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ public class Fans: Module {
|
||||
var list: [KeyValue_t] = []
|
||||
value.forEach { (f: Fan) in
|
||||
if f.state {
|
||||
let str = label ? "\(f.name.prefix(1).uppercased()): \(f.formattedValue)" : f.formattedValue
|
||||
let str = label ? "\(f.name.prefix(1).uppercased()): \(Int(f.value))" : f.formattedValue
|
||||
list.append(KeyValue_t(key: "Fan#\(f.id)", value: str))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user