Fix compilation error

This commit is contained in:
scorpion-26 2023-09-21 19:23:10 +08:00 committed by GitHub
parent 1364301351
commit 5a4b11c659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!");