Fixes deletion of old alerts when above a certain threshold

This commit is contained in:
Simone Mainardi 2019-10-14 18:03:16 +02:00
parent 243e728086
commit b258f45858
2 changed files with 4 additions and 2 deletions

View file

@ -408,6 +408,8 @@ function ts_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold, s
local dump_tstart = os.time()
local dumped_hosts = {}
housekeepingAlertsMakeRoom(ifstats.id)
-- Save hosts stats (if enabled from the preferences)
if (is_rrd_creation_enabled and (config.host_rrd_creation ~= "0")) then
local in_time = callback_utils.foreachLocalRRDHost(_ifname, time_threshold, is_rrd_creation_enabled, function (hostname, host_ts)