summaryrefslogtreecommitdiff
path: root/openbsd
diff options
context:
space:
mode:
authorPaul Buetow <openbsd@mx.buetow.org>2022-02-06 18:40:19 +0100
committerPaul Buetow <openbsd@mx.buetow.org>2022-02-06 18:40:19 +0100
commit0979b9bb314dba2c879049a681d72f5de74298da (patch)
treeb06a36bd7d095a9a74a6d958c47003212554bd9c /openbsd
parentba1fc816a70ebcb159305716399b42c9804b4513 (diff)
update
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/frontends/scripts/sitestats.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd/frontends/scripts/sitestats.sh b/openbsd/frontends/scripts/sitestats.sh
index b12ff7f..62702c7 100755
--- a/openbsd/frontends/scripts/sitestats.sh
+++ b/openbsd/frontends/scripts/sitestats.sh
@@ -74,7 +74,7 @@ ip_stats () {
ip_daily_stats () {
echo "Unique IPs by day"
- for back in $(jot 90); do
+ for back in $(jot 14); do
now=$(date +%s)
date=$(date -r $(echo "$now - 86400 * $back" | bc) +%d,%b)
echo -n "\t $date:"
@@ -84,7 +84,7 @@ ip_daily_stats () {
ip_daily_subscribers () {
echo "Unique atom.xml subscribers by day"
- for back in $(jot 90); do
+ for back in $(jot 14); do
now=$(date +%s)
date=$(date -r $(echo "$now - 86400 * $back" | bc) +%d,%b)
echo -n "\t $date:"
@@ -101,7 +101,7 @@ main () {
stats | top_n 2
stats | top_n '4,5'
stats | top_n 7
- stats | top_n '1,7'
+ stats | grep -F .suffix | top_n 7 ' (Only content)'
stats | top_n '1,2,7'
ip_stats
ip_daily_stats