Commit 6e63322a authored by Alessio Netti's avatar Alessio Netti
Browse files

ProcFS: minor fix

parent 030562f6
......@@ -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();
......
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