mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes touchRRD after timeseries rework
This commit is contained in:
parent
1d26f4a36b
commit
68a76043b6
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue