Commit a79ffd56 authored by Michael Ott's avatar Michael Ott
Browse files

Use _scheduledTime in SMUCNGPerfOperator::compute() to query the cache

parent 444b728d
...@@ -139,7 +139,7 @@ void SMUCNGPerfOperator::printConfig(LOG_LEVEL ll) { ...@@ -139,7 +139,7 @@ void SMUCNGPerfOperator::printConfig(LOG_LEVEL ll) {
void SMUCNGPerfOperator::compute(U_Ptr unit) { void SMUCNGPerfOperator::compute(U_Ptr unit) {
auto inputs = unit->getInputs(); auto inputs = unit->getInputs();
auto timestamp = getTimestamp() - _go_back_ns; auto timestamp = _scheduledTime - _go_back_ns;
for(auto& outSensor : unit->getOutputs()){ for(auto& outSensor : unit->getOutputs()){
if(outSensor->getMetadata() == nullptr || !outSensor->getMetadata()->getScale()) { if(outSensor->getMetadata() == nullptr || !outSensor->getMetadata()->getScale()) {
LOG(error) << "No metadata defined, sensor " << outSensor->getName() << " can't compute anything."; LOG(error) << "No metadata defined, sensor " << outSensor->getName() << " can't compute anything.";
......
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