Skip to content

Commit

Permalink
Fix some typos in the stats generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Feb 1, 2017
1 parent 8026c2f commit f7ffbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/stats-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ fi
if [[ $mdaggrcount -gt "0" ]]; then
mdaggrminqueriesperip=$(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 ".xml" | grep -v 404 | cut -f 2 -d ":" | cut -f 1 -d " " | sort | uniq -c | sort -nr | tail -1 | awk '{print $1}' | awk '{ printf ("%'"'"'d\n", $0) }')
else
mdqaggrinqueriesperip="0"
mdaggrinqueriesperip="0"
fi

# Avg queries per IP
Expand All @@ -364,7 +364,7 @@ fi
if [[ $mdaggrcountfull -gt "0" ]]; then
mdaggrminqueriesperipfull=$(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 ".xml" | grep -v 404 | grep "\" 200" | grep "GET" | cut -f 2 -d ":" | cut -f 1 -d " " | sort | uniq -c | sort -nr | tail -1 | awk '{print $1}' | awk '{ printf ("%'"'"'d\n", $0) }')
else
mdqaggrinqueriesperipfull="0"
mdaggrinqueriesperipfull="0"
fi

# Avg queries per IP, full D/L only
Expand Down

0 comments on commit f7ffbba

Please sign in to comment.