From 4240aab3465d0fb022d4b2dc553155fd331d6d4c Mon Sep 17 00:00:00 2001 From: Bill Date: Fri, 9 Apr 2021 11:13:25 -0400 Subject: first words --- stats/calc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stats') diff --git a/stats/calc.sh b/stats/calc.sh index e0005bf..9567247 100755 --- a/stats/calc.sh +++ b/stats/calc.sh @@ -11,8 +11,8 @@ fi TODAY=$(date -Id) echo -e "Stats for day:\t$TODAY" > $OUTFILE -echo -e "Total Reqs:\t"$(grep 'OUT' ${LOGFILE} | grep "${TODAY}" | wc -l) >> $OUTFILE -echo -e "Gemlog Reads:\t"$(grep 'IN' ${LOGFILE} | grep "${TODAY}" | grep "gemlog" | grep "gmi" | wc -l) >> $OUTFILE +echo -e " Total Reqs:\t"$(grep 'OUT' ${LOGFILE} | grep "${TODAY}" | wc -l) >> $OUTFILE +echo -e " Gemlog Reads:\t"$(grep 'IN' ${LOGFILE} | grep "${TODAY}" | grep "gemlog" | grep "gmi" | wc -l) >> $OUTFILE echo "Top 5 Gemlogs" >> $OUTFILE echo "--------------" >> $OUTFILE grep "IN" ${LOGFILE} | grep "${TODAY}" | cut -f4 | grep "gemlog" | grep ".gmi" | sort | uniq -c | sort -rn | head -n5 >> $OUTFILE -- cgit v1.2.3-54-g00ecf