mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
(Change version)
fixed aux fan glitch in output. This was a bug, aux was simply left unhandled in some cases for fan output
This commit is contained in:
parent
81365d855f
commit
62b865293b
10
inxi
10
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.2.7
|
#### version: 1.2.8
|
||||||
#### Date: November 17 2009
|
#### Date: December 25 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -3313,11 +3313,11 @@ get_sensors_data()
|
||||||
aFanMain[3]=gensub( /[ \t]*([0-9]+)[ \t]+(.*)/, "\\1", 1, $2 )
|
aFanMain[3]=gensub( /[ \t]*([0-9]+)[ \t]+(.*)/, "\\1", 1, $2 )
|
||||||
}
|
}
|
||||||
|
|
||||||
/^(AUX|FAN(1)? |CASE(1)? |CHASSIS(1)? )(.*)[ \t]*([0-9]+)[ \t]RPM/ {
|
/^(AUX(1)? |FAN(1)? |CASE(1)? |CHASSIS(1)? )(.*)[ \t]*([0-9]+)[ \t]RPM/ {
|
||||||
aFanMain[4]=gensub( /[ \t]*([0-9]+)[ \t]+(.*)/, "\\1", 1, $2 )
|
aFanMain[4]=gensub( /[ \t]*([0-9]+)[ \t]+(.*)/, "\\1", 1, $2 )
|
||||||
}
|
}
|
||||||
/^(FAN([2-9]) |CASE([2-9]) |CHASSIS([2-9]) )(.*)[ \t]*([0-9]+)[ \t]RPM/ {
|
/^(AUX([2-9]) |FAN([2-9]) |CASE([2-9]) |CHASSIS([2-9]) )(.*)[ \t]*([0-9]+)[ \t]RPM/ {
|
||||||
sysFanNu=gensub( /^(FAN|CASE|CHASSIS)([2-9])[ \t]+(.*)/, "\\2", 1, $1 )
|
sysFanNu=gensub( /^(AUX|FAN|CASE|CHASSIS)([2-9])[ \t]+(.*)/, "\\2", 1, $1 )
|
||||||
if ( sysFanNu ~ /^([2-9])$/ ) {
|
if ( sysFanNu ~ /^([2-9])$/ ) {
|
||||||
# note: cpu/mobo/ps/fan1 above are 1/2/3/4
|
# note: cpu/mobo/ps/fan1 above are 1/2/3/4
|
||||||
sysFanNu = sysFanNu + 3
|
sysFanNu = sysFanNu + 3
|
||||||
|
|
Loading…
Reference in a new issue