Stats page crawl server table improvement

This commit is contained in:
Simon 2018-11-15 13:46:21 -05:00
parent fc3de06c35
commit a461b22ffc

View File

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