[fluksod] allow counter to wrap around in WAN branch

This commit is contained in:
Bart Van Der Meerssche 2011-02-17 00:11:21 +01:00
parent 5df1cae92c
commit e3de39f026
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ function wan_buffer(child)
if timestamp > TIMESTAMP_MIN
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
measurements:add(sensor_id, timestamp, counter)