1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Update dashboard.html

This commit is contained in:
Alexandr Topilski 2019-06-06 09:40:27 +03:00 committed by GitHub
parent 3f8d8d40a2
commit 69633a5ed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,10 +44,6 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
th.stream_actions {
width: 25%;
}
</style>
{{super()}}
{% endblock %}
@ -401,7 +397,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
<th class="stream_status">{% trans %}Status{% endtrans %}</th>
<th class="stream_restarts">{% trans %}Restarts{% endtrans %}</th>
<th class="stream_cpu">{% trans %}CPU{% endtrans %}</th>
<th class="stream_rss">{% trans %}RSS{% endtrans %}</th>
<th class="stream_rss">{% trans %}RSS (MB){% endtrans %}</th>
<th class="stream_inbps">{% trans %}In BPS{% endtrans %}</th>
<th class="stream_outbps">{% trans %}Out BPS{% endtrans %}</th>
<th class="stream_work_time">{% trans %}In work time{% endtrans %}</th>
@ -516,7 +512,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
row.eq(3).text(kStatuses[stream.status]);
row.eq(4).text(stream.restarts);
row.eq(5).text(stream.cpu);
row.eq(6).text(stream.rss);
row.eq(6).text(stream.rss / (1024 * 1024).toFixed(4));
var in_bps = 0;
for(var i in stream.input_streams) {
in_bps += stream.input_streams[i].bps;