Separated the two data retentions

This commit is contained in:
MatteoBiscosi 2022-03-31 16:39:54 +02:00
parent c40be779d5
commit 6c9f571196
9 changed files with 40 additions and 17 deletions

View file

@ -999,7 +999,7 @@ end
function driver:deleteOldData(ifid)
local paths = getRRDPaths()
local dirs = ntop.getDirs()
local retention_days = data_retention_utils.getDataRetentionDays()
local retention_days = data_retention_utils.getTSAndStatsDataRetentionDays()
for _, path in pairs(paths) do
local ifpath = os_utils.fixPath(dirs.workingdir .. "/" .. ifid .. "/".. path .."/")