mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added in C or F output
This commit is contained in:
parent
161a7b975a
commit
4038300724
8
inxi
8
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.0.81-b1
|
#### version: 1.0.82-b1
|
||||||
#### Date: 26 July 2009
|
#### Date: 26 July 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -3025,9 +3025,15 @@ get_sensors_data()
|
||||||
# dumping the extra + signs, nobody has negative temps
|
# dumping the extra + signs, nobody has negative temps
|
||||||
/M\/B Temp/ {
|
/M\/B Temp/ {
|
||||||
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
|
if ( $4 ~ /C|F/ ){
|
||||||
|
moboTemp=moboTemp " " $4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/CPU Temp/ {
|
/CPU Temp/ {
|
||||||
cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
|
if ( $4 ~ /C|F/ ){
|
||||||
|
cpuTemp=cpuTemp " " $4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/CPU Fan/ {
|
/CPU Fan/ {
|
||||||
cpuFan=$3
|
cpuFan=$3
|
||||||
|
|
Loading…
Reference in a new issue