[fluksod] pass unix time to the polish method

This commit is contained in:
Bart Van Der Meerssche 2011-05-01 09:48:07 +02:00
parent 6b8e701d26
commit ac11a4fa21
2 changed files with 2 additions and 4 deletions

View File

@ -90,9 +90,7 @@ function filter(M, span, offset)
end
end
function polish(M, cutoff)
local now = os.time()
function polish(M, now, cutoff)
for sensor, T in pairs(M) do
local H = timestamps(T)

View File

@ -320,7 +320,7 @@ function publish(child)
end
while true do
measurements:polish(LAN_POLISH_CUTOFF)
measurements:polish(os.time(), LAN_POLISH_CUTOFF)
local measurements_json = measurements:json_encode()
for sensor_id, json in pairs(measurements_json) do