05.03., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit d87022f9 authored by Alessio Netti's avatar Alessio Netti

Analytics: removed unnecessary error logging in Smoothing plugin

parent d64b73e5
......@@ -48,9 +48,10 @@ void SmoothingOperator::compute(U_Ptr unit) {
_buffer.clear();
SmoothingSBPtr sIn=unit->getInputs()[0], sOut=unit->getOutputs()[0];
uint64_t startTs = sOut->getTimestamp() ? getTimestamp()-sOut->getTimestamp() : 0;
// Throwing an error does not make sense here - the query will often fail depending on insert batching
if(!_queryEngine.querySensor(sIn->getName(), startTs, 0, _buffer, true))
throw std::runtime_error("Operator " + _name + ": cannot read from sensor " + sIn->getName() + "!");
return;
for(const auto& v : _buffer) {
if (v.timestamp > sOut->getTimestamp()) {
......
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