Skip to content

Commit

Permalink
Correct a mistake in bnxstats. Thanks Jenny
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx8671 authored Jul 30, 2018
1 parent dc06e04 commit b63e75d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runBNG
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ if [[ $1 == "bnxstats" ]] && [[ $# -gt 1 ]]; then
maxSNR=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $5}' | sort -rn | head -n 1`
avgSNR=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $5}' | awk '{sum+=$1; n++} END {print sum/n}'`

maxten=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $4}' | sort -n | head -n 1`
minten=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $4}' | sort -rn | head -n 1`
minten=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $4}' | sort -n | head -n 1`
maxten=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $4}' | sort -rn | head -n 1`
avgten=`grep -v "^#" "$bnx" | awk '{if (NR%4==1) print $4}' | awk '{sum+=$1; n++} END {print sum/n}'`

echo "========================================== bnxstats starts ============================================="
Expand Down

0 comments on commit b63e75d

Please sign in to comment.