Marvell armada is running on higher temp

This commit is contained in:
Igor Pecovnik 2016-01-22 08:02:06 +01:00
parent 3c0cdf1d89
commit 92de799c4f

View file

@ -135,7 +135,10 @@ display "Memory usage" "$memory_usage" "10" "0" " %" " of $memory_total""Mb"
display "Swap usage" "$swap_usage" "10" "0" " %" " of $swap_total""Mb"
echo "" # fixed newline
a=0;b=0;c=0
display "CPU temp" "$board_temp" "50" "0" "°C" "" ; a=$?
# exception for marvell armada
red_limit="40"
[[ "$(cat /proc/cpuinfo | grep Marvell)" != "" ]] && red_limit="70"
display "CPU temp" "$board_temp" "$red_limit" "0" "°C" "" ; a=$?
display "HDD temp" "$hdd_temp" "50" "0" "°C" "" ; b=$?
display "Ambient temp" "$amb_temp" "40" "0" "°C" "" ; c=$?
(( ($a+$b+$c) >0 )) && echo "" # new line only if some value is displayed