Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
1913fa45
Commit
1913fa45
authored
Oct 05, 2020
by
Michael Ott
Browse files
Revert "Fix usage of time_enabled/time_running ratio"
This reverts commit
e277376e
.
parent
66b90453
Changes
1
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/sensors/perfevent/PerfSensorGroup.cpp
View file @
1913fa45
...
...
@@ -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
*
correction
;
reading
.
value
=
rf
->
values
[
i
].
value
;
//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
,
1
,
!
_htAggregation
);
s
->
storeReading
(
reading
,
correction
,
!
_htAggregation
);
bin
.
latestValueValid
=
true
;
}
else
{
//Before we can compute correct values again after an invalid reading we have to update the lastRawValue first
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment