From: Stefan Schantl Date: Sat, 26 Mar 2022 10:17:06 +0000 (+0100) Subject: ids-functionsn.pl: Remove logging calls when checking free diskspace. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65e3aef5835a5e681bdd2af292e4c547c0d196d0;p=people%2Fstevee%2Fipfire-2.x.git ids-functionsn.pl: Remove logging calls when checking free diskspace. Signed-off-by: Stefan Schantl --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index f4541ce778..b2a3a73907 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -255,11 +255,8 @@ sub checkdiskspace () { # Check if the available disk space is more than 300MB. if ($available < 300) { - # Log error to syslog. - &_log_to_syslog("Not enough free disk space on /var. Only $available MB from 300 MB available."); - - # Exit function and return "1" - False. - return 1; + # Exit function and return the available disk space. + return $available; } } }