mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Avoid iterating hosts when hosts timeseries are disabled
This commit is contained in:
parent
c64c07a4dd
commit
14034d3884
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ function rrd_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold,
|
|||
end
|
||||
|
||||
-- Save hosts stats (if enabled from the preferences)
|
||||
if is_rrd_creation_enabled or are_alerts_enabled then
|
||||
if (is_rrd_creation_enabled and (config.host_rrd_creation ~= "0")) or are_alerts_enabled then
|
||||
local in_time = callback_utils.foreachLocalRRDHost(_ifname, time_threshold, is_rrd_creation_enabled, function (hostname, host_ts)
|
||||
if are_alerts_enabled then
|
||||
-- Check alerts first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue