Added charts in Inactive hosts page and syncro with filters. Added delete since (#7577)

This commit is contained in:
Matteo Biscosi 2023-06-25 10:55:12 +00:00
parent ae9748b5a7
commit 7863162d86
10 changed files with 233 additions and 22 deletions

View file

@ -32,7 +32,8 @@ if isEmptyString(ifid) or isEmptyString(serial_key) then
end
if tonumber(serial_key) then
inactive_hosts_utils.deleteAllEntriesSince(ifid, tonumber(serial_key))
local epoch = os.time() - tonumber(serial_key)
inactive_hosts_utils.deleteAllEntriesSince(ifid, epoch)
elseif (serial_key == "all") then
inactive_hosts_utils.deleteAllEntries(ifid)
else