openwrt: nan should be string encoded
This commit is contained in:
parent
f8a732c88b
commit
332d3ef4e1
|
@ -80,10 +80,10 @@ function fill(M)
|
|||
for meter, T in pairs(M) do
|
||||
local H = timestamps(T)
|
||||
for i = H[#H]-1, H[1]+1, -1 do
|
||||
if T[i] == nil or T[i] == 'nan' then T[i] = T[i+1] end
|
||||
if T[i] == nil or T[i] == '"nan"' then T[i] = T[i+1] end
|
||||
end
|
||||
for i = H[#H]+1, os.time() do
|
||||
T[i] = 'nan'
|
||||
T[i] = '"nan"'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue