fix: adjust fans module width (#460)

This commit is contained in:
Serhiy Mytrovtsiy
2021-05-06 16:53:23 +02:00
parent 2e3e36aa89
commit 24d552f22d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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