diff --git a/src/NvidiaGPU.h b/src/NvidiaGPU.h index 6ab6c20..caa38b8 100644 --- a/src/NvidiaGPU.h +++ b/src/NvidiaGPU.h @@ -68,7 +68,7 @@ namespace NvidiaGPU // Check if all information is available GPUUtilization util; - int res = nvmlDeviceGetUtilizationRates(nvmlGPUHandle, &util); + res = nvmlDeviceGetUtilizationRates(nvmlGPUHandle, &util); if (res != 0) { LOG("Failed querying utilization rates (Error: " << res << "), disabling Nvidia GPU!");