mirror of
https://github.com/tmux-plugins/tmux-cpu.git
synced 2026-09-10 07:16:16 -04:00
fix 80% considered "low" rather than "high"
Merge pull request #49 from hhiraba/fix-load-status
This commit is contained in:
commit
f1eaa3ec47
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue