Added API commands

This commit is contained in:
Simon
2018-07-15 21:21:57 -04:00
parent 8a19fa0ce7
commit 0227684a53
6 changed files with 85 additions and 173 deletions

View File

@@ -12,7 +12,7 @@
<p class="lead">{{ stats["total_count"] }} files totalling
~{{ stats["total_size"] | filesizeformat }} from {{ stats["website_count"] }} websites</p>
{% else %}
<p class="lead">We're currently experiencing a high volume of traffic. The search function
<p class="lead">We are currently experiencing a high volume of traffic. The search function
may be unresponsive.</p>
{% endif %}
<p></p>

View File

@@ -96,7 +96,7 @@
<tr>
<th>Crawl time average</th>
{% for server in crawl_server_stats %}
<td>{{ crawl_server_stats[server].time_avg|round(2) }}s per task</td>
<td>{{ crawl_server_stats[server].time_avg|round(2) }}s</td>
{% endfor %}
</tr>
<tr>
@@ -108,7 +108,7 @@
<tr>
<th>Files crawled average</th>
{% for server in crawl_server_stats %}
<td>{{ crawl_server_stats[server].file_count_avg | round(2) }} per task</td>
<td>{{ crawl_server_stats[server].file_count_avg | round(2) }}</td>
{% endfor %}
</tr>
</tbody>