Update temp.inc.sh
This commit is contained in:
@@ -271,9 +271,12 @@ CHECKTEMP(){
|
|||||||
if [ $(bc -l <<< "${temp_f} >= ${temp_crit}") -eq 1 ] || ([ "${TTYPE}" == "fans" ] && [ $(bc -l <<< "${temp_f} > $(bc <<< "scale=2; ${GL_HIGH}+5")") -eq 1 ]); then
|
if [ $(bc -l <<< "${temp_f} >= ${temp_crit}") -eq 1 ] || ([ "${TTYPE}" == "fans" ] && [ $(bc -l <<< "${temp_f} > $(bc <<< "scale=2; ${GL_HIGH}+5")") -eq 1 ]); then
|
||||||
lclr="${idsCL[LightRed]}"
|
lclr="${idsCL[LightRed]}"
|
||||||
lmd="CRITICAL"
|
lmd="CRITICAL"
|
||||||
elif ([ $(bc -l <<< "${temp_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_f} < ${temp_crit}") -eq 1 ]) || ([ "${TTYPE}" == "fans" ] && ([ $(bc -l <<< "${temp_f} < ${GL_LOW}") -eq 1 ] || [ $(bc -l <<< "${GL_HIGH} < ${temp_f}") -eq 1 ])); then
|
elif [ $(bc -l <<< "${temp_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_f} < ${temp_crit}") -eq 1 ]; then
|
||||||
lclr="${idsCL[Yellow]}"
|
lclr="${idsCL[Yellow]}"
|
||||||
lmd="WARNING "
|
lmd="WARNING "
|
||||||
|
elif [ "${TTYPE}" == "fans" ] && [ $(bc -l <<< "${temp_f} < ${GL_LOW}") -eq 1 ]; then
|
||||||
|
lclr="${idsCL[LightCyan]}"
|
||||||
|
lmd="COOL "
|
||||||
else
|
else
|
||||||
lclr="${idsCL[Green]}"
|
lclr="${idsCL[Green]}"
|
||||||
lmd="Normal "
|
lmd="Normal "
|
||||||
|
|||||||
Reference in New Issue
Block a user