Skip to content

Commit f1eaa3e

Browse files
authoredApr 25, 2020
fix 80% considered "low" rather than "high"
Merge pull request #49 from hhiraba/fix-load-status
2 parents 1d53845 + 1ae1ced commit f1eaa3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎scripts/helpers.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ is_linux_iostat() {
3434
iostat -c &> /dev/null
3535
}
3636

37-
# is second float bigger?
37+
# is second float bigger or equal?
3838
fcomp() {
39-
awk -v n1=$1 -v n2=$2 'BEGIN {if (n1<n2) exit 0; exit 1}'
39+
awk -v n1=$1 -v n2=$2 'BEGIN {if (n1<=n2) exit 0; exit 1}'
4040
}
4141

4242
load_status() {

0 commit comments

Comments
 (0)