Skip to content

Commit

Permalink
_lp_load_color: fix $variable inside (( ))
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen committed Jul 9, 2014
1 parent 008c133 commit 53ce540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ _lp_load_color()
tmp=${tmp#0} # Remove leading '0', again (ex: 0.09)
local -i load=${tmp:-0}/$_lp_CPUNUM

if (( load > $LP_LOAD_THRESHOLD )); then
if (( load > LP_LOAD_THRESHOLD )); then
local ret="$(_lp_color_map $load 200)${LP_MARK_LOAD}"

if [[ "$LP_PERCENTS_ALWAYS" == 1 ]]; then
Expand Down

0 comments on commit 53ce540

Please sign in to comment.