summaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2021-04-09 11:13:25 -0400
committerBill <bill@billserver.senders.io>2021-04-09 11:13:25 -0400
commit4240aab3465d0fb022d4b2dc553155fd331d6d4c (patch)
tree73d8870ed62f2131f80df7f0e1aa72e7d7a05152 /stats
parent57937673ebbafe7cd81884708e8916013abff063 (diff)
first words
Diffstat (limited to 'stats')
-rwxr-xr-xstats/calc.sh4
1 files changed, 2 insertions, 2 deletions
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