diff options
| author | Paul Buetow <openbsd@mx.buetow.org> | 2022-02-06 18:40:19 +0100 |
|---|---|---|
| committer | Paul Buetow <openbsd@mx.buetow.org> | 2022-02-06 18:40:19 +0100 |
| commit | 0979b9bb314dba2c879049a681d72f5de74298da (patch) | |
| tree | b06a36bd7d095a9a74a6d958c47003212554bd9c | |
| parent | ba1fc816a70ebcb159305716399b42c9804b4513 (diff) | |
update
| -rwxr-xr-x | openbsd/frontends/scripts/sitestats.sh | 6 |
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 |
