openwrt: fill the power entries in reverse order which works perfectly with pulse interfaces

This commit is contained in:
Bart Van Der Meerssche 2010-09-09 22:07:02 +02:00
parent 4a7ae875ec
commit 09fd007bb2
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ end
function fill(M)
for meter, T in pairs(M) do
local H = timestamps(T)
for i = H[1]+1, H[#H]-1 do
if T[i] == nil then T[i] = T[i-1] end
for i = H[#H]-1, H[1]+1, -1 do
if T[i] == nil then T[i] = T[i+1] end
end
end
end