mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix interface timeseries being written even if the preference is disabled
This commit is contained in:
parent
b0c2278897
commit
019665c111
6 changed files with 14 additions and 69 deletions
|
|
@ -3,7 +3,6 @@
|
|||
require "lua_utils"
|
||||
require "alert_utils"
|
||||
require "graph_utils"
|
||||
require "rrd_utils"
|
||||
|
||||
local os_utils = require "os_utils"
|
||||
local top_talkers_utils = require "top_talkers_utils"
|
||||
|
|
@ -113,9 +112,10 @@ function rrd_dump.run_min_dump(_ifname, ifstats, config, when, verbose)
|
|||
dumpTopTalkers(_ifname, ifstats, verbose)
|
||||
scanAlerts("min", ifstats)
|
||||
|
||||
-- not even needed to check this as the function should only be called
|
||||
-- on interfaces that have rrd generation enabled
|
||||
if not interface_rrd_creation_enabled(ifstats.id) then
|
||||
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifstats.id..".interface_rrd_creation") ~= "false")
|
||||
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")
|
||||
|
||||
if not iface_rrd_creation_enabled then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue