Commit d099caad authored by Alessio Netti's avatar Alessio Netti
Browse files

Reverting NVML plugin to previous behavior

parent 6f3a9d68
...@@ -173,10 +173,9 @@ void nvmlSensorGroup::read() { ...@@ -173,10 +173,9 @@ void nvmlSensorGroup::read() {
reading.value = counters.procs_cnt; reading.value = counters.procs_cnt;
break; break;
} }
if(err == NVML_SUCCESS) { s->storeReading(reading);
s->storeReading(reading); if(err != NVML_SUCCESS) {
} else { LOG(debug) << "Sensorgroup " << _groupName << " could not read " << s->getName() << ": NVML error!";
LOG(error) << "Sensorgroup " << _groupName << " could not read " << s->getName() << ": NVML error!";
} }
#ifdef DEBUG #ifdef DEBUG
LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\""; LOG(debug) << _groupName << "::" << s->getName() << " raw reading: \"" << reading.value << "\"";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment