From 65e3aef5835a5e681bdd2af292e4c547c0d196d0 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 26 Mar 2022 11:17:06 +0100 Subject: [PATCH] ids-functionsn.pl: Remove logging calls when checking free diskspace. Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index f4541ce77..b2a3a7390 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; } } }