imrplement amd power

This commit is contained in:
alu
2026-08-04 20:47:11 +00:00
parent cc4698e311
commit 04b4f53092
4 changed files with 179 additions and 5 deletions
+6
View File
@@ -14,6 +14,7 @@ type Proc struct {
type CPUSensorReader interface {
ReadTemperatureSensors() ([]TempSensor, error)
ReadPowerSensors() ([]PowerSensor, error)
}
type TempSensor struct {
@@ -21,6 +22,11 @@ type TempSensor struct {
TempC float64
}
type PowerSensor struct {
Name string
Watts float64
}
const (
VendorIntel string = "GenuineIntel"
VendorAMD string = "AuthenticAMD"