mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Cleanup of the timeseries ring and NetworkInterfaceTsPoint
This commit is contained in:
parent
7334e15b50
commit
340462ad73
25 changed files with 61 additions and 611 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue