mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
fix: Remove dependency of bc for load widget
This commit is contained in:
parent
862ff70bfc
commit
3a94826ed1
1 changed files with 2 additions and 2 deletions
|
@ -983,9 +983,9 @@ prompt_load() {
|
|||
# Replace comma
|
||||
load_avg=${load_avg//,/.}
|
||||
|
||||
if [[ "$load_avg" -gt $(bc -l <<< "${cores} * 0.7") ]]; then
|
||||
if [[ "$load_avg" -gt $((${cores} * 0.7)) ]]; then
|
||||
current_state="critical"
|
||||
elif [[ "$load_avg" -gt $(bc -l <<< "${cores} * 0.5") ]]; then
|
||||
elif [[ "$load_avg" -gt $((${cores} * 0.5)) ]]; then
|
||||
current_state="warning"
|
||||
else
|
||||
current_state="normal"
|
||||
|
|
Loading…
Reference in a new issue