From 5a4b11c659ca42c4ac88361c25829842d8a471c4 Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Thu, 21 Sep 2023 19:23:10 +0800 Subject: [PATCH] Fix compilation error --- src/NvidiaGPU.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!");