[fluksod] send accepted incoming pulses to syslog

This commit is contained in:
Bart Van Der Meerssche 2011-04-05 09:25:46 +02:00
parent cd5ff2ed60
commit 5bffb794d7
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ function wan_buffer(child)
and counter ~= (previous[sensor_id].counter or 0)
then
nixio.syslog('info', string.format('received pulse %s:%s:%s', sensor_id, timestamp, counter))
measurements:add(sensor_id, timestamp, counter)
previous[sensor_id].timestamp = timestamp
previous[sensor_id].counter = counter