Skip to content

Commit

Permalink
Fix MFCR/tacho parsing, since MFT 4.20 introduces a tacho_active_msb …
Browse files Browse the repository at this point in the history
…field
  • Loading branch information
kcgthb committed May 31, 2022
1 parent 429e39a commit 002adae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibswinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ done <<< "$_regs"

# fan speeds
# get active tachos
at_bmsz=$(htod "$(awk '/tacho_active/ {printf $(NF-2)}' \
at_bmsz=$(htod "$(awk '/tacho_active / {printf $(NF-2)}' \
< <(show_reg MFCR))")
at_bmsk=$(htob "$(awk '/tacho_active/ {printf $NF}' \
at_bmsk=$(htob "$(awk '/tacho_active / {printf $NF}' \
<<< "${reg[MFCR]}")" "$at_bmsz")
# gather fan speeds for active tachos
for (( i=${#at_bmsk}-1; i>0; i-- )); do
Expand Down

0 comments on commit 002adae

Please sign in to comment.