Minor bugfix in armbianmonitor

This commit is contained in:
Thomas Kaiser 2017-11-29 19:31:21 +01:00 committed by GitHub
parent 5cb346e80f
commit 9b49b45ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,7 +343,7 @@ MonitorMode() {
echo -e "\n$(date "+%H:%M:%S"): --- $(printf "%5s" ${LoadAvg}) ${procStats}\c"
;;
esac
if [ "X${SocTemp}" != "Xn/a" ] && [ ! -z "${raw_temp##*[!0-9]*}" ]; then
if [ "X${SocTemp}" != "Xn/a" ] && [ ! -z "${SocTemp##*[!0-9]*}" ]; then
read SocTemp <"${Sensors}/soctemp"
if [ ${SocTemp} -ge 1000 ]; then
SocTemp=$(awk '{printf ("%0.1f",$1/1000); }' <<<${SocTemp})