summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2018-11-10 14:01:24 +0000
committerintrigeri <intrigeri@boum.org>2018-11-10 14:01:24 +0000
commit169813c01d357023137e4b341c19c54db991d3e3 (patch)
tree324be40d04d7ee05a80bfccac916394ab3f4e684
parentbfcd29d64b2b46bd9988ae701798d4f3371ed68d (diff)
Fix statistics script (refs: #14588)
We want the total count, not a per-logfile one.
-rw-r--r--files/website/tails-website-last-month-stats10
1 files changed, 6 insertions, 4 deletions
diff --git a/files/website/tails-website-last-month-stats b/files/website/tails-website-last-month-stats
index 153a95f..eb00717 100644
--- a/files/website/tails-website-last-month-stats
+++ b/files/website/tails-website-last-month-stats
@@ -26,11 +26,13 @@ for log_file in access.log.1 access.log ; do
done
echo -n "Boots in $LAST_MONTH: "
-zgrep --count -E \
+zgrep -E \
"/${LAST_MONTH_ABBR}/.*\"GET /security/index\.[a-z]{2}\.atom HTTP/[0-9]\.[0-9]\" 200 [0-9]+ \"-\" \"(-|libwww-perl/)" \
- $LOG_FILES
+ $LOG_FILES \
+ | wc -l
echo -n "Downloads of the OpenPGP signature in $LAST_MONTH: "
-zgrep --count -E \
+zgrep -E \
"/${LAST_MONTH_ABBR}/.*\"GET /torrents/files/tails-[-a-z0-9~.]\+\.iso\.sig .* 200 [0-9]\+" \
- $LOG_FILES
+ $LOG_FILES \
+ | wc -l