mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
Log an error if nvmlDeviceGetUtilizationRates
failed
This commit is contained in:
parent
f61638c5e9
commit
eefce24024
@ -55,7 +55,10 @@ bool getNVMLInfo(){
|
||||
nvml.nvmlDeviceGetPowerUsage(nvidiaDevice, &nvidiaPowerUsage);
|
||||
deviceID = nvidiaPciInfo.pciDeviceId >> 16;
|
||||
|
||||
if (response == NVML_ERROR_NOT_SUPPORTED)
|
||||
if (response == NVML_ERROR_NOT_SUPPORTED) {
|
||||
if (nvmlSuccess)
|
||||
SPDLOG_ERROR("nvmlDeviceGetUtilizationRates failed");
|
||||
nvmlSuccess = false;
|
||||
}
|
||||
return nvmlSuccess;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user