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 hour" %}</th>
<th>{% trans "IPs last day" %}</th> <th>{% trans "IPs last day" %}</th>
<th>{% trans "IPs last week" %}</th> <th>{% trans "IPs last week" %}</th>
<th>{% trans "7 day PPH moving average" %}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -77,9 +76,6 @@
<td class="minimal"> <td class="minimal">
<span>{{ boardStat.weekly_ips }}</span> <span>{{ boardStat.weekly_ips }}</span>
</td> </td>
<td class="minimal">
<span>{{ boardStat.rolling_average }}</span>
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </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 SELECT HOUR(FROM_UNIXTIME(time)) AS hour, DAYOFYEAR(FROM_UNIXTIME(time)) AS day, COUNT(*) AS count
FROM ``posts_%s`` FROM ``posts_%s``
WHERE time > %d WHERE time > %d
GROUP BY hour, day", GROUP BY hour, day)",
$_board['uri'], $_board['uri'],
time()-$timespan) time()-$timespan)
) or error(db_error()); ) or error(db_error());

Loading…
Cancel
Save