Commit 2636e4b1 authored by Carla Guillen's avatar Carla Guillen
Browse files

Adding debug logs.

parent df447702
......@@ -78,7 +78,7 @@ void PerSystSqlOperator::compute(U_Ptr unit, qeJobData& jobData) {
compute_internal(unit, _buffer);
}
void PerSystSqlOperator::compute_internal(U_Ptr unit, vector<reading_t>& buffer) {
void PerSystSqlOperator::compute_internal(U_Ptr& unit, vector<reading_t>& buffer) {
_quantileSensors.clear();
reading_t reading;
AggregatorSensorBase::aggregationOps_t op;
......
......@@ -93,7 +93,7 @@ private:
protected:
virtual void compute(U_Ptr unit) override;
void compute_internal(U_Ptr unit, vector<reading_t>& buffer);
void compute_internal(U_Ptr& unit, vector<reading_t>& buffer);
double computeSeverityAverage(vector<double> & buffer);
};
......
......@@ -128,7 +128,10 @@ void SMUCNGPerfOperator::compute(U_Ptr unit) {
}
void SMUCNGPerfOperator::query(const std::string & sensor_name, const uint64_t timestamp, vector<reading_t> &buffer){
_queryEngine.querySensor(sensor_name, timestamp, timestamp, buffer, false); //use absolute timestamp and always false
auto initSize = buffer.size();
if(_queryEngine.querySensor(sensor_name, timestamp, timestamp, buffer, false) || buffer.size() <= initSize) {
LOG(debug) << "SMUCNGPerf Operator " << _name << " cannot read from sensor " << sensor_name << "!";
}
}
void SMUCNGPerfOperator::resetBuffers(){
......
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