imrplement amd power
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user