mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added current sensors (#766)
This commit is contained in:
@@ -42,7 +42,7 @@ internal class x86_SensorsReader: SensorsReader {
|
||||
|
||||
available = available.filter({ (key: String) -> Bool in
|
||||
switch key.prefix(1) {
|
||||
case "T", "V", "P": return true
|
||||
case "T", "V", "P", "I": return true
|
||||
default: return false
|
||||
}
|
||||
})
|
||||
|
||||
@@ -204,6 +204,12 @@ let SensorsList: [Sensor] = [
|
||||
Sensor(key: "VV9S", name: "12V", group: .sensor, type: .voltage),
|
||||
Sensor(key: "VeES", name: "PCI 12V", group: .sensor, type: .voltage),
|
||||
|
||||
// Current
|
||||
Sensor(key: "IC0R", name: "CPU High side", group: .sensor, type: .current),
|
||||
Sensor(key: "IG0R", name: "GPU High side", group: .sensor, type: .current),
|
||||
Sensor(key: "ID0R", name: "DC In", group: .sensor, type: .current),
|
||||
Sensor(key: "IBAC", name: "Battery", group: .sensor, type: .current),
|
||||
|
||||
// Power
|
||||
Sensor(key: "PC0C", name: "CPU Core", group: .CPU, type: .power),
|
||||
Sensor(key: "PCAM", name: "CPU Core (IMON)", group: .CPU, type: .power),
|
||||
|
||||
Reference in New Issue
Block a user