Merge branch 'master' into next

This commit is contained in:
Ben Hilburn
2018-03-06 20:56:11 -05:00
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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"