From 0811296f1be0acd86380169bd982a4dd934b1af9 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 7 Sep 2023 15:37:49 +0200 Subject: [PATCH] Added -w to 100 for expiring all data in time selected --- pandora_server/util/pandora_db.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 060583d904..88fea56b7a 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -360,7 +360,7 @@ sub pandora_purgedb ($$$) { } else { # Update stats file with max lifetime. - `yes 2>/dev/null | $conf->{'_netflow_nfexpire'} -u "$conf->{'_netflow_path'}" -t $conf->{'_netflow_max_lifetime'}d`; + `yes 2>/dev/null | $conf->{'_netflow_nfexpire'} -u "$conf->{'_netflow_path'}" -t $conf->{'_netflow_max_lifetime'}d -w 100`; # Rescan directory. `yes 2>/dev/null | $conf->{'_netflow_nfexpire'} -r "$conf->{'_netflow_path'}"`; # Expire files @@ -384,7 +384,7 @@ sub pandora_purgedb ($$$) { log_message ('!', "Cannot execute " . $conf->{'_sflow_nfexpire'} . ", skipping."); } else { - `yes 2>/dev/null | $conf->{'_sflow_nfexpire'} -r "$conf->{'_sflow_path'}" -t $conf->{'_sflow_max_lifetime'}d -w 100`; + `yes 2>/dev/null | $conf->{'_sflow_nfexpire'} -r "$conf->{'_sflow_path'}" -t $conf->{'_sflow_max_lifetime'}d`; } } else {