Commit e277376e authored by Michael Ott's avatar Michael Ott
Browse files

Fix usage of time_enabled/time_running ratio

parent b4c276be
......@@ -304,7 +304,7 @@ void PerfSensorGroup::read() {
}
//iterate over all values returned by ::read()
for (size_t i = 0; i < rf->nr; i++) {
reading.value = rf->values[i].value;
reading.value = rf->values[i].value * correction;
//iterate over all counters and find the one with matching id
for (const auto &s : bin.sensors) {
......@@ -314,7 +314,7 @@ void PerfSensorGroup::read() {
#endif
if (bin.lastValid) {
//storeReading takes care of delta computation and applies correction value on the result
s->storeReading(reading, correction, !_htAggregation);
s->storeReading(reading, 1, !_htAggregation);
bin.latestValueValid = true;
} else {
//Before we can compute correct values again after an invalid reading we have to update the lastRawValue first
......
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