implement intel power stats

This commit is contained in:
alu
2026-08-04 14:33:55 -07:00
parent 16495b403b
commit afbae3d3d4
3 changed files with 128 additions and 50 deletions
+6
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"os"
"strings"
"time"
)
type Proc struct {
@@ -27,6 +28,11 @@ type PowerSensor struct {
Watts float64
}
type EnergyState struct {
lastEnergy uint64
lastTime time.Time
}
const (
VendorIntel string = "GenuineIntel"
VendorAMD string = "AuthenticAMD"