Commit 2cc27930 authored by Micha Mueller's avatar Micha Mueller
Browse files

Perf plugin: move delta initialization into constructor

parent 10e42a95
......@@ -19,7 +19,10 @@ public:
SensorBase(name),
_type(0),
_config(0),
_lastRawPerf(0) {}
_lastRawPerf(0) {
//default delta to true, as perfevent has only monotonic sensors usually
_delta = true;
}
virtual ~PerfSensorBase() {}
......
......@@ -58,8 +58,6 @@ void PerfeventConfigurator::sensorBase(PerfSensorBase& s, CFG_VAL config) {
/*
* Custom code, as perf-event is an extra special plugin
*/
//default delta to true, as perfevent has only monotonic sensors usually
s.setDelta(true);
BOOST_FOREACH(boost::property_tree::iptree::value_type &val, config) {
if (boost::iequals(val.first, "type")) {
try {
......
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