From 40383007248e97a79e1976bef5cbbd0565453820 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 27 Jul 2009 04:53:34 +0000 Subject: [PATCH] added in C or F output --- inxi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 32888eb..647812f 100755 --- a/inxi +++ b/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