waybar loadavg helper: increase tolerances

This commit is contained in:
tea 2024-06-16 15:59:18 +02:00
parent de2d5e01bc
commit 9431f1a454
No known key found for this signature in database

View File

@ -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