ids-functionsn.pl: Remove logging calls when checking free diskspace.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-26 11:17:06 +01:00
parent 52a557a848
commit 65e3aef583

View 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;
}
}
}