feat: GPU power display, font enlargement, countdown timer, dim color fix, miner_uid login
This commit is contained in:
+9
-1
@@ -1109,6 +1109,14 @@ func tryNvidiaSMI() []GPUInfo {
|
||||
} else {
|
||||
fan = parseFloat(fanStr)
|
||||
}
|
||||
powerStr := strings.TrimSpace(parts[9])
|
||||
powerStr = strings.Trim(powerStr, "[]")
|
||||
var power float64
|
||||
if powerStr == "N/A" || powerStr == "" {
|
||||
power = 0
|
||||
} else {
|
||||
power = parseFloat(powerStr)
|
||||
}
|
||||
gpus = append(gpus, GPUInfo{
|
||||
Name: parts[1],
|
||||
VRAMTotalMB: parseFloat(parts[2]),
|
||||
@@ -1117,7 +1125,7 @@ func tryNvidiaSMI() []GPUInfo {
|
||||
LoadPercent: parseFloat(parts[6]),
|
||||
CoreClock: parseFloat(parts[7]),
|
||||
MemClock: parseFloat(parts[8]),
|
||||
Power: parseFloat(parts[9]),
|
||||
Power: power,
|
||||
FanSpeed: fan,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user