From 6df6c9dd6b3ed9ae0e1eaf2502c91cf98a9a457d Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Jul 2009 19:57:07 +0000 Subject: [PATCH] fine tuned sys/chassis fan settings --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 96b8c46..63d35e5 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.0.103-b1 +#### version: 1.0.104-b1 #### Date: 28 July 2009 ######################################################################## #### SPECIAL THANKS @@ -3109,7 +3109,8 @@ local sample=" /^FAN([2-9]) Speed:|CHASSIS([2-9]) FAN Speed:/ { sysFanNu=gensub( /(FAN|CHASSIS)([2-9])( FAN)? Speed:/, "\\2", 1, $0 ) if ( sysFanNu ~ /([2-9])/ ) { - sysFanNu = sysFanNu + 3 + # note: cpu/mobo/ps/fan1 above are 1/2/3/4 + sysFanNu = sysFanNu + 4 if ( $2 == "Speed:" ) { aFanReal[sysFanNu]=$3 }