Browse Source

remove rolling average

pull/40/head
nonmakina 3 years ago
parent
commit
9d9ae86c55
  1. 4
      templates/themes/categories/news.html
  2. 2
      templates/themes/categories/theme.php

4
templates/themes/categories/news.html

@ -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>

2
templates/themes/categories/theme.php

@ -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());

Loading…
Cancel
Save