aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2018-03-07 04:56:11 +0300
committerBen Hilburn <bhilburn@gmail.com>2018-03-07 04:56:11 +0300
commitb8a68dd4a88cc0454ed1e385765d368e7fb50429 (patch)
treeab77ab740347ede4780dfb8d12e500292d41a486 /powerlevel9k.zsh-theme
parent33e301078458901f09cadf23c48ed7b3db5311ff (diff)
parentafb7387abec505fb6565d31481c5f5ed724c2f08 (diff)
Merge branch 'master' into next
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index c32ccd48..8dee7f27 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1023,9 +1023,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"