Cleanup of the timeseries ring and NetworkInterfaceTsPoint

This commit is contained in:
emanuele-f 2020-05-20 13:22:39 +02:00
parent 7334e15b50
commit 340462ad73
25 changed files with 61 additions and 611 deletions

View file

@ -264,3 +264,14 @@ function getSystemInterfaceName()
-- NOTE: keep in sync with SYSTEM_INTERFACE_NAME in ntop_defines.h
return "__system__"
end
-- ###########################################
function hasHighResolutionTs()
local active_driver = ntop.getPref("ntopng.prefs.timeseries_driver")
-- High resolution timeseries means dumping the host timeseries
-- every 60 seconds instead of 300 seconds.
return((active_driver == "influxdb") and
(ntop.getPref("ntopng.prefs.ts_resolution") ~= "300"))
end