diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-31 14:59:24 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-31 14:59:24 +0300 |
| commit | c508f9b24be667d5d078034b4d4e7bb07b28da69 (patch) | |
| tree | 366a5532afe2fdf695ae39434585c61d641558ce | |
| parent | 40e1c5d8d3b5d5a31698d2d598ba234709555426 (diff) | |
reports: show Top 5 URLs per day; move Total to rightmost column in Feed Statistics Evolution and Total Requests by Day; regenerate HTML/Gemtext reports
| -rw-r--r-- | foostats.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/foostats.pl b/foostats.pl index be32602..235da02 100644 --- a/foostats.pl +++ b/foostats.pl @@ -1237,7 +1237,7 @@ $content } $content .= format_table( - [ 'Date', 'Total', 'Filtered', 'Gemini', 'Web', 'IPv4', 'IPv6' ], + [ 'Date', 'Filtered', 'Gemini', 'Web', 'IPv4', 'IPv6', 'Total' ], \@summary_rows ); $content .= "\n```\n\n"; @@ -1259,9 +1259,9 @@ $content my $ipv6 = $stats->{count}{IPv6} // 0; return [ - $formatted_date, $total_requests, $filtered, + $formatted_date, $filtered, $gemini, $web, $ipv4, - $ipv6 + $ipv6, $total_requests ]; } @@ -1279,7 +1279,7 @@ $content } $content .= format_table( - [ 'Date', 'Total', 'Gem Feed', 'Gem Atom', 'Web Feed', 'Web Atom' ], + [ 'Date', 'Gem Feed', 'Gem Atom', 'Web Feed', 'Web Atom', 'Total' ], \@feed_rows ); $content .= "\n```\n\n"; @@ -1295,11 +1295,11 @@ $content return [ $formatted_date, - $stats->{feed_ips}{'Total'} // 0, $stats->{feed_ips}{'Gemini Gemfeed'} // 0, $stats->{feed_ips}{'Gemini Atom'} // 0, $stats->{feed_ips}{'Web Gemfeed'} // 0, - $stats->{feed_ips}{'Web Atom'} // 0 + $stats->{feed_ips}{'Web Atom'} // 0, + $stats->{feed_ips}{'Total'} // 0 ]; } @@ -1391,7 +1391,7 @@ $content sub build_top3_urls_last_n_days_per_day { my ($stats_dir, $days, $merged) = @_; $days //= 30; - my $content = "## Top 3 URLs Per Day (Last ${days} Days)\n\n"; + my $content = "## Top 5 URLs Per Day (Last ${days} Days)\n\n"; my @all = DateHelper::last_month_dates(); my @dates = @all; @@ -1412,7 +1412,7 @@ sub build_top3_urls_last_n_days_per_day { my $urls = $stats->{page_ips}{urls}; my @sorted = sort { ($urls->{$b}//0) <=> ($urls->{$a}//0) } keys %$urls; next unless @sorted; - my $limit = @sorted < 3 ? @sorted : 3; + my $limit = @sorted < 5 ? @sorted : 5; @sorted = @sorted[0..$limit-1]; my @rows; |
