Fixes influxdb retention not updated (#7096)

This commit is contained in:
MatteoBiscosi 2023-01-26 11:25:35 +01:00
parent 5ced7e3c93
commit 20107649e9
2 changed files with 13 additions and 4 deletions

View file

@ -109,7 +109,10 @@ if auth.has_capability(auth.capabilities.preferences) then
recording_utils.setLicense(_POST["n2disk_license"])
end
if _POST["timeseries_driver"] or _POST["data_retention_days"] then
if _POST["timeseries_driver"] or _POST["ts_and_stats_data_retention_days"] then
if ntop.getPref("ntopng.prefs.timeseries_driver") == 'influxdb' then
ntop.setCache("ntopng.influxdb.retention_changed", 1)
end
ts_utils.setupAgain()
end