diff --git a/inxi b/inxi index 4f0ddad..cbad503 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.0.84-b1 +#### version: 1.0.85-b1 #### Date: 26 July 2009 ######################################################################## #### SPECIAL THANKS @@ -3023,13 +3023,15 @@ get_sensors_data() # dumping the extra + signs, nobody has negative temps # 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 - /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 ) if ( $4 ~ /C|F/ ){ moboTemp=moboTemp "°" $4 } } - /CPU Temp/ { + /CPU Temp|temp1:/ { cpuTemp=gensub( /\+(.+)/, "\\1", 1, $3 ) if ( $4 ~ /C|F/ ){ cpuTemp=cpuTemp "°" $4