[fluksod] allow counter to wrap around in WAN branch
This commit is contained in:
parent
5df1cae92c
commit
e3de39f026
|
@ -132,7 +132,7 @@ function wan_buffer(child)
|
||||||
|
|
||||||
if timestamp > TIMESTAMP_MIN
|
if timestamp > TIMESTAMP_MIN
|
||||||
and timestamp > (previous[sensor_id].timestamp or 0)
|
and timestamp > (previous[sensor_id].timestamp or 0)
|
||||||
and counter > (previous[sensor_id].counter or 0)
|
and counter ~= (previous[sensor_id].counter or 0)
|
||||||
then
|
then
|
||||||
|
|
||||||
measurements:add(sensor_id, timestamp, counter)
|
measurements:add(sensor_id, timestamp, counter)
|
||||||
|
|
Loading…
Reference in New Issue