From 724efa2e57565a78a76a7a341927af54e2bd237c Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Tue, 22 Jan 2019 22:16:32 +0100 Subject: Add server speeds graph, option to show peak speeds and some design changes Options/query strings: 'peak' to turn on peak speed instead of average speed 'timespan' the timespan in which to calculate the average and peak speeds (default: 120) (seconds) --- static/new_status-dnbd3.html | 170 +++++++++++++++++++++++++++++++++---------- 1 file changed, 131 insertions(+), 39 deletions(-) diff --git a/static/new_status-dnbd3.html b/static/new_status-dnbd3.html index b4049bb..cb26cba 100644 --- a/static/new_status-dnbd3.html +++ b/static/new_status-dnbd3.html @@ -4,16 +4,32 @@ @@ -38,67 +54,112 @@
-
- +
+
- - - - + + + + + - +
Server IP:{{ server.address }}
Uptime:{{ formatSeconds(server.uptime) }}
Upload speed:{{ formatBytes(server.uploadSpeed) +'/s' }}
Download speed:{{ formatBytes(server.downloadSpeed) +'/s' }}
{{ server.address }}
Uptime:{{ formatSeconds(server.uptime) }}
Upload speed:{{ formatBytes(peak ? server.peakUploadSpeed : server.avgUploadSpeed) +'/s' }}
Download speed:{{ formatBytes(peak ? server.peakDownloadSpeed : server.avgDownloadSpeed) +'/s' }}
Total sent:{{ formatBytes(server.bytesSent) }}
Total received:{{ formatBytes(server.bytesReceived) }}
Client count:{{ server.clientCount }}
{{ client.address.split( ":" )[0] }}{{ formatBytes(client.uploadSpeed) + '/s' }} + {{ formatBytes(peak ? client.peakUploadSpeed : client.avgUploadSpeed) + '/s' }} +
+
+ +