mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +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
|
||||
########################################################################
|
||||
#### 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
|
||||
|
|
Loading…
Reference in a new issue