From 59f4534605418c04fb3825bbfff2ad7c7eda50d5 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Jul 2009 21:06:50 +0000 Subject: [PATCH] restored bug tests --- inxi | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/inxi b/inxi index 254090b..a88d5cc 100755 --- a/inxi +++ b/inxi @@ -3237,25 +3237,15 @@ local sample=" cpuTempReal = cpuTempReal tempUnit } # print "tempunit: " tempUnit - print - print "1:"cpuTempReal":" - print "2:"moboTempReal":" - print "3:"aFanReal[1]":" - print "4:"aFanReal[2]":" - print "5:"aFanReal[3]":" - print "6:"sysFanString":" - print "::" - - # if they are ALL null, print error message. psFan is not used in output currently -# if ( cpuTempReal == "" && moboTempReal == "" && aFanReal[1] == "" && aFanReal[2] == "" && aFanReal[3] == "" && sysFanString == "" ) { -# print "No active sensors found. Have you configured your sensors yet?" -# } -# else { -# # then build it: afanreals: 1 - cpu; 2 - mobo; 3 - psu -# print cpuTempReal "," moboTempReal "," aFanReal[1] "," aFanReal[2] "," aFanReal[3] sysFanString -# } + if ( cpuTempReal == "" && moboTempReal == "" && aFanReal[1] == "" && aFanReal[2] == "" && aFanReal[3] == "" && sysFanString == "" ) { + print "No active sensors found. Have you configured your sensors yet?" + } + else { + # then build it: afanreals: 1 - cpu; 2 - mobo; 3 - psu + print cpuTempReal "," moboTempReal "," aFanReal[1] "," aFanReal[2] "," aFanReal[3] sysFanString + } } ' ) )