Commit 87ef2d25 authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: minor fix to signatures plugin

parent b29c370b
......@@ -414,7 +414,7 @@ void CSOperator::computeSignature(U_Ptr unit, uint64_t nowTs) {
for (size_t idx = _bBegin; idx < _bEnd; idx++)
val.value += _derBuffer[_permVector[idx]];
}
val.value /= _bEnd - _bBegin;
val.value /= ((int64_t)_bEnd - (int64_t)_bBegin);
s->storeReading(val);
}
}
......
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