waybar loadavg helper: increase tolerances
This commit is contained in:
parent
de2d5e01bc
commit
9431f1a454
|
@ -7,9 +7,9 @@ local load=${${(@s: :)load_all}[1]}
|
|||
|
||||
local class=good
|
||||
local nproc=$(nproc)
|
||||
if [[ ${load} -gt $(( ${nproc} + 1 )) ]]; then
|
||||
if [[ ${load} -gt $(( ${nproc} + 1.25 )) ]]; then
|
||||
class=critical
|
||||
elif [[ ${load} -gt ${nproc} ]]; then
|
||||
elif [[ ${load} -gt $(( ${nproc} + 0.2 )) ]]; then
|
||||
class=warning
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user