remove rolling average

This commit is contained in:
nonmakina 2021-02-21 19:56:42 -06:00
parent 9137949dbf
commit 9d9ae86c55
2 changed files with 1 additions and 5 deletions

View File

@ -39,7 +39,6 @@
<th>{% trans "IPs last hour" %}</th>
<th>{% trans "IPs last day" %}</th>
<th>{% trans "IPs last week" %}</th>
<th>{% trans "7 day PPH moving average" %}</th>
</tr>
</thead>
<tbody>
@ -77,9 +76,6 @@
<td class="minimal">
<span>{{ boardStat.weekly_ips }}</span>
</td>
<td class="minimal">
<span>{{ boardStat.rolling_average }}</span>
</td>
</tr>
{% endfor %}
</tbody>

View File

@ -162,7 +162,7 @@
SELECT HOUR(FROM_UNIXTIME(time)) AS hour, DAYOFYEAR(FROM_UNIXTIME(time)) AS day, COUNT(*) AS count
FROM ``posts_%s``
WHERE time > %d
GROUP BY hour, day",
GROUP BY hour, day)",
$_board['uri'],
time()-$timespan)
) or error(db_error());