Sum up stats that nonmakina added

- fixes the "totals" row in the table on news.html
This commit is contained in:
towards-a-new-leftypol 2021-02-26 20:21:29 -05:00
parent e0bc0e106d
commit c384ac12f5

View File

@ -137,6 +137,9 @@
$stats['daily_ips'] = count($daily);
$stats['weekly_ips'] = count($weekly);
$stats['pph'] = array_sum(array_column($stats['boards'], 'pph'));
$stats['hourly_ips'] = array_sum(array_column($stats['boards'], 'hourly_ips'));
$stats['daily_ips'] = array_sum(array_column($stats['boards'], 'daily_ips'));
$stats['weekly_ips'] = array_sum(array_column($stats['boards'], 'weekly_ips'));
return $stats;
}