Refactor shell scripts to remove unused code.

- Remove possibleaverages array from check-disk.sh and check-mem.sh
This commit is contained in:
Jeroen De Meerleer 2023-05-31 11:40:47 +02:00
parent bdb9ee05e7
commit 17ce488ac3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 0 additions and 2 deletions

View File

@ -80,7 +80,6 @@ crit=0.9
disk='/'
script_name=$(basename "${0}")
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
possibleavarages=("1" "5" "15")
GetOptions "$@"
totalfull=$(df --output=size -B 1024 "${disk}" | tail -n 1 | xargs)

View File

@ -70,7 +70,6 @@ warn=0.7
crit=0.9
script_name=$(basename "${0}")
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
possibleavarages=("1" "5" "15")
GetOptions "$@"
totalfull=$(cat /proc/meminfo | grep MemTotal | awk '{ print $2; }')