Fix 5sec stats time alignment

This commit is contained in:
emanuele-f 2019-11-15 11:52:33 +01:00
parent b6d6414875
commit 84178c4fa1
2 changed files with 5 additions and 5 deletions

View file

@ -47,10 +47,9 @@ end
-- ########################################################
function ts_dump.run_5sec_dump(ifid, periodic_ht_state_update_stats)
function ts_dump.run_5sec_dump(ifid, when, periodic_ht_state_update_stats)
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifid..".interface_rrd_creation") ~= "false")
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")
local when = os.time()
if not iface_rrd_creation_enabled then
return