Fixed: Broken cpu temperature graph when is value over cpu high temp

pull/104/head
aristocratos 2020-05-05 20:56:05 +02:00
parent a0c0a99656
commit 1692f22fd9
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ create_mini_graph() { #? Create a one line high graph from an array of percenta
#* Round current input_array value divided by 10 to closest whole number
org_value=${input_array[offset+x]}
if ((org_value<0)); then org_value=0; fi
if ((org_value>=100)); then cur_value=10
if ((org_value>=100)); then cur_value=10; org_value=100
elif [[ ${#org_value} -gt 1 && ${org_value:(-1)} -ge 5 ]]; then cur_value=$((${org_value::1}+1))
elif [[ ${#org_value} -gt 1 && ${org_value:(-1)} -lt 5 ]]; then cur_value=$((${org_value::1}))
elif [[ ${org_value:(-1)} -ge 5 ]]; then cur_value=1