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
6e63322a
Commit
6e63322a
authored
Jun 10, 2020
by
Alessio Netti
Browse files
ProcFS: minor fix
parent
030562f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/sensors/procfs/ProcfsParser.cpp
View file @
6e63322a
...
...
@@ -458,7 +458,7 @@ bool ProcstatParser::_readNames(std::map<std::string, ProcfsSBPtr> *sensorMap, s
}
_lines
.
push_back
(
line
);
// Mapping the current CPU id to its first sensor entry in the vector
if
(
line
.
cpuID
>=
0
&&
htMap
.
find
(
effCPU
)
==
htMap
.
end
())
if
(
line
.
cpuID
>=
0
&&
!
line
.
skip
&&
htMap
.
find
(
effCPU
)
==
htMap
.
end
())
htMap
.
insert
(
std
::
make_pair
(
effCPU
,
line
));
}
_numMetrics
=
_sensors
->
size
();
...
...
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