Added in preferences the ability to specify the MySQL data retention

This commit is contained in:
Luca Deri 2015-09-22 23:32:39 +02:00
parent a62344d45c
commit 2767caa991
4 changed files with 43 additions and 11 deletions

View file

@ -47,6 +47,13 @@ if(haveAdminPrivileges()) then
"to keep application protocol statistics at the cost of using more disk space.",
"On", "1", "success", "Off", "0", "danger", "toggle_local_ndpi", "ntopng.prefs.host_ndpi_rrd_creation")
-- ================================================================================
print('<tr><th colspan=2 class="info">MySQL Database</th></tr>')
mysql_retention = ntop.getCache("ntopng.prefs.mysql_retention")
if((mysql_retention == nil) or (mysql_retention == "")) then mysql_retention = "30" end
prefsInputField("Data Retention", "Duration in days of data retention in the MySQL database. Default: 30 days", "mysql_retention", mysql_retention)
-- ================================================================================
print('<tr><th colspan=2 class="info">Alerts</th></tr>')