From 0979b9bb314dba2c879049a681d72f5de74298da Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 6 Feb 2022 18:40:19 +0100 Subject: update --- openbsd/frontends/scripts/sitestats.sh | 6 +++--- 1 file 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 -- cgit v1.2.3