Skip to content

Commit 87a4fa4

Browse files
committed
minor updates
1 parent d998fd0 commit 87a4fa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ func applyPowerLimit(device nvml.Device, index int, currentTemp uint) error {
484484

485485
// Updated GetGPUInfo function
486486
func GetGPUInfo() ([]GPUInfo, error) {
487-
err := checkAndApplyPowerLimits()
487+
var err error
488+
err = checkAndApplyPowerLimits()
488489
if err != nil {
489490
log.Printf("Warning: Failed to check and apply power limits: %v", err)
490491
}

0 commit comments

Comments
 (0)