mirror of
https://github.com/smxi/inxi.git
synced 2025-01-18 16:37:49 +00:00
branch one, sensors tests
This commit is contained in:
parent
0074e0fe1f
commit
cab5a78d7c
2
inxi
2
inxi
|
@ -8295,7 +8295,6 @@ get_sensors_data()
|
|||
tempUnit=tempWorkingUnit
|
||||
}
|
||||
}
|
||||
|
||||
# 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
|
||||
/^CPU(.*)[ \t]*([0-9]+)[ \t]RPM/ {
|
||||
|
@ -8520,7 +8519,6 @@ get_sensors_data()
|
|||
if ( cpuTempReal != "" ) {
|
||||
cpuTempReal = cpuTempReal tempUnit
|
||||
}
|
||||
|
||||
# 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 == "" ) {
|
||||
print "No active sensors found. Have you configured your sensors yet?"
|
||||
|
|
Loading…
Reference in a new issue