branch one, sensors tests

This commit is contained in:
inxi-svn 2014-04-28 19:07:29 +00:00
parent 0074e0fe1f
commit cab5a78d7c

2
inxi
View file

@ -8295,7 +8295,6 @@ get_sensors_data()
tempUnit=tempWorkingUnit tempUnit=tempWorkingUnit
} }
} }
# note: can be cpu fan:, cpu fan speed:, etc. Some cases have no space before # note: can be cpu fan:, cpu fan speed:, etc. Some cases have no space before
# $2 starts (like so :1234 RPM), so skip that space test in regex # $2 starts (like so :1234 RPM), so skip that space test in regex
/^CPU(.*)[ \t]*([0-9]+)[ \t]RPM/ { /^CPU(.*)[ \t]*([0-9]+)[ \t]RPM/ {
@ -8520,7 +8519,6 @@ get_sensors_data()
if ( cpuTempReal != "" ) { if ( cpuTempReal != "" ) {
cpuTempReal = cpuTempReal tempUnit cpuTempReal = cpuTempReal tempUnit
} }
# if they are ALL null, print error message. psFan is not used in output currently # if they are ALL null, print error message. psFan is not used in output currently
if ( cpuTempReal == "" && moboTempReal == "" && aFanMain[1] == "" && aFanMain[2] == "" && aFanMain[3] == "" && fanDefaultString == "" ) { if ( cpuTempReal == "" && moboTempReal == "" && aFanMain[1] == "" && aFanMain[2] == "" && aFanMain[3] == "" && fanDefaultString == "" ) {
print "No active sensors found. Have you configured your sensors yet?" print "No active sensors found. Have you configured your sensors yet?"