added in C or F output

This commit is contained in:
inxi-svn 2009-07-27 04:53:34 +00:00
parent 161a7b975a
commit 4038300724

8
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.81-b1
#### version: 1.0.82-b1
#### Date: 26 July 2009
########################################################################
#### SPECIAL THANKS
@ -3025,9 +3025,15 @@ get_sensors_data()
# dumping the extra + signs, nobody has negative temps
/M\/B Temp/ {
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
if ( $4 ~ /C|F/ ){
moboTemp=moboTemp " " $4
}
}
/CPU Temp/ {
cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
if ( $4 ~ /C|F/ ){
cpuTemp=cpuTemp " " $4
}
}
/CPU Fan/ {
cpuFan=$3