mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 10:26:44 +00:00
Stats page crawl server table improvement
This commit is contained in:
parent
fc3de06c35
commit
a461b22ffc
@ -74,43 +74,25 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th>Server</th>
|
||||||
{% for server in crawl_server_stats %}
|
<th>Tasks done</th>
|
||||||
<th>{{ server }}</th>
|
<th>Crawl time</th>
|
||||||
{% endfor %}
|
<th>Crawl time avg.</th>
|
||||||
|
<th>Files crawled</th>
|
||||||
|
<th>Files crawled avg.</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<th>Completed tasks</th>
|
|
||||||
{% for server in crawl_server_stats %}
|
{% for server in crawl_server_stats %}
|
||||||
|
<tr>
|
||||||
|
<td><b>{{ server }}</b></td>
|
||||||
<td>{{ crawl_server_stats[server].task_count }}</td>
|
<td>{{ crawl_server_stats[server].task_count }}</td>
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Crawl time</th>
|
|
||||||
{% for server in crawl_server_stats %}
|
|
||||||
<td>{{ crawl_server_stats[server].time|round(2) }}s</td>
|
<td>{{ crawl_server_stats[server].time|round(2) }}s</td>
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Crawl time average</th>
|
|
||||||
{% for server in crawl_server_stats %}
|
|
||||||
<td>{{ crawl_server_stats[server].time_avg|round(2) }}s</td>
|
<td>{{ crawl_server_stats[server].time_avg|round(2) }}s</td>
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Files crawled</th>
|
|
||||||
{% for server in crawl_server_stats %}
|
|
||||||
<td>{{ crawl_server_stats[server].file_count }}</td>
|
<td>{{ crawl_server_stats[server].file_count }}</td>
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Files crawled average</th>
|
|
||||||
{% for server in crawl_server_stats %}
|
|
||||||
<td>{{ crawl_server_stats[server].file_count_avg | round(2) }}</td>
|
<td>{{ crawl_server_stats[server].file_count_avg | round(2) }}</td>
|
||||||
{% endfor %}
|
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user