diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2018-01-24 22:09:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 22:09:03 +0300 |
commit | d4a3c045ea9603612f1ee3acc2171331d34eb931 (patch) | |
tree | 8341a8905a0636d3821c464961b822d51b4126f5 | |
parent | 862ff70bfc965945f07fcabfc4a4d9f5f58e4fe2 (diff) | |
parent | 3a94826ed198ba9a569c77d163202707cda42530 (diff) |
Merge pull request #722 from lemarsu/master
fix: Remove dependency of bc for load widget
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 97e99f43..14d7bd81 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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" |