mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
trying initial temp1/temp2 alt cpu/sys temp info
This commit is contained in:
parent
c70c18e707
commit
73a25f53cc
8
inxi
8
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.0.84-b1
|
#### version: 1.0.85-b1
|
||||||
#### Date: 26 July 2009
|
#### Date: 26 July 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -3023,13 +3023,15 @@ get_sensors_data()
|
||||||
# dumping the extra + signs, nobody has negative temps
|
# dumping the extra + signs, nobody has negative temps
|
||||||
# also, note gawk treats ° as a space, so we have to get the C/F data
|
# also, note gawk treats ° as a space, so we have to get the C/F data
|
||||||
# explicitly by testing for $4 ~ /C|F/ then concatenating manually
|
# explicitly by testing for $4 ~ /C|F/ then concatenating manually
|
||||||
/M\/B Temp|SYS Temp/ {
|
# there are some guesses here, and we will need a lot more data of
|
||||||
|
# different systems before this can be trusted much
|
||||||
|
/M\/B Temp|SYS Temp|temp2:/ {
|
||||||
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
if ( $4 ~ /C|F/ ){
|
if ( $4 ~ /C|F/ ){
|
||||||
moboTemp=moboTemp "°" $4
|
moboTemp=moboTemp "°" $4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/CPU Temp/ {
|
/CPU Temp|temp1:/ {
|
||||||
cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
if ( $4 ~ /C|F/ ){
|
if ( $4 ~ /C|F/ ){
|
||||||
cpuTemp=cpuTemp "°" $4
|
cpuTemp=cpuTemp "°" $4
|
||||||
|
|
Loading…
Reference in a new issue