]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functionsn.pl: Remove logging calls when checking free diskspace.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2022 10:17:06 +0000 (11:17 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 26 Mar 2022 10:17:06 +0000 (11:17 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index f4541ce778968ab1c4e9903630c2f81c40ca454b..b2a3a73907e07e625128b6886700c30b06044e94 100644 (file)
@@ -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;
                        }
                }
        }