mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: omit current sensors with more than 100A (#943)
This commit is contained in:
@@ -76,6 +76,8 @@ internal class SensorsReader: Reader<[Sensor_p]> {
|
||||
self.list += list.filter({ (s: Sensor) -> Bool in
|
||||
if s.type == .temperature && (s.value == 0 || s.value > 110) {
|
||||
return false
|
||||
} else if s.type == .current && s.value > 100 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user