Fixes touchRRD after timeseries rework

This commit is contained in:
Simone Mainardi 2017-10-31 12:20:49 +01:00
parent 1d26f4a36b
commit 68a76043b6

View file

@ -1076,13 +1076,15 @@ function touchRRD(rrdname)
if((last ~= nil) and ((now-last) > 3600)) then
local tdiff = now - 1800 -- This avoids to set the update continuously
local label = tdiff
for i=1,ds_count do
label = label .. ":0"
if(ds_count == 1) then
ntop.rrd_update(rrdname, tdiff.."", 0)
elseif(ds_count == 2) then
ntop.rrd_update(rrdname, tdiff.."", 0, 0)
elseif(ds_count == 3) then
ntop.rrd_update(rrdname, tdiff.."", 0, 0, 0)
end
ntop.rrd_update(rrdname, label)
end
end