From 5e8e56488c33b1c771c5473f6d8860f2df68f46e Mon Sep 17 00:00:00 2001 From: topilski Date: Wed, 5 Jun 2019 11:53:08 -0400 Subject: [PATCH] Bandwidth Mbps --- app/templates/user/dashboard.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/templates/user/dashboard.html b/app/templates/user/dashboard.html index 534a4db..68334ec 100644 --- a/app/templates/user/dashboard.html +++ b/app/templates/user/dashboard.html @@ -45,6 +45,7 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }} width: 25%; } + {{super()}} {% endblock %} @@ -126,7 +127,8 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }}
- + {% trans %}Playlist{% endtrans %}
@@ -538,9 +540,9 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }} var service_gpu = $('#service_gpu'); service_gpu.text(service.gpu); var service_bandwidth_in = $('#service_bandwidth_in'); - service_bandwidth_in.text(service.bandwidth_in); + service_bandwidth_in.text((service.bandwidth_in / (1024 * 1024)).toFixed(4) + ' Mbps'); var service_bandwidth_out = $('#service_bandwidth_out'); - service_bandwidth_out.text(service.bandwidth_out); + service_bandwidth_out.text((service.bandwidth_out / (1024 * 1024)).toFixed(4) + ' Mbps'); var service_version = $('#service_version'); service_version.text(service.version); var service_status = $('#service_status'); @@ -801,5 +803,6 @@ Dashboard | {{ config['PUBLIC_CONFIG'].site.title }} } + {% endblock %}