remove rolling average
This commit is contained in:
parent
9137949dbf
commit
9d9ae86c55
|
@ -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>
|
||||||
|
|
|
@ -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…
Reference in New Issue