From 73a25f53cc6451c111623dd833d0511b14577fbf Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 27 Jul 2009 05:57:06 +0000 Subject: [PATCH] trying initial temp1/temp2 alt cpu/sys temp info --- inxi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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