fix 80% considered "low" rather than "high"

Merge pull request #49 from hhiraba/fix-load-status
This commit is contained in:
Casper da Costa-Luis 2020-04-25 14:46:46 +01:00 committed by GitHub
commit f1eaa3ec47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,9 @@ is_linux_iostat() {
iostat -c &> /dev/null
}
# is second float bigger?
# is second float bigger or equal?
fcomp() {
awk -v n1=$1 -v n2=$2 'BEGIN {if (n1<n2) exit 0; exit 1}'
awk -v n1=$1 -v n2=$2 'BEGIN {if (n1<=n2) exit 0; exit 1}'
}
load_status() {