Skip to content

Commit

Permalink
Fix incorrect output in stats script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Nov 1, 2016
1 parent e56ea32 commit a06e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/stats-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ if [[ "$timeperiod" != "day" ]]; then
mdaggrtestpc="0.0"
fi
mdaggrwayfcount=$(grep $apachesearchterm $logslocation/md/md1/metadata.uou-access_log* $logslocation/md/md2/metadata.uou-access_log* $logslocation/md/md3/metadata.uou-access_log* | grep -Ev "(Sensu-HTTP-Check|dummy|check_http|Balancer)" | grep "ukfederation-wayf.xml" | wc -l)
mdaggrwayfcountfriendly=$(echo $mddaggrwayfcount | awk '{ printf ("%'"'"'d\n", $0) }')
mdaggrwayfcountfriendly=$(echo $mdaggrwayfcount | awk '{ printf ("%'"'"'d\n", $0) }')
if [[ "$mdaggrwayfcount" -ne "0" ]]; then
mdaggrwayfpc=$(echo "scale=4;($mdaggrwayfcount/$mdaggrcount)*100" | bc | awk '{printf "%.1f\n", $0}')
else
Expand Down

0 comments on commit a06e46e

Please sign in to comment.