From 0d6891477e5df8d46d80a0c3712bba19883fc21b Mon Sep 17 00:00:00 2001
From: Victor Mocanu
Date: Thu, 9 Feb 2017 15:25:56 +0100
Subject: removed unnecesary comments and ToDos
---
static/new_status-dnbd3.html | 35 +++--------------------------------
1 file changed, 3 insertions(+), 32 deletions(-)
diff --git a/static/new_status-dnbd3.html b/static/new_status-dnbd3.html
index f4505c4..eec291a 100644
--- a/static/new_status-dnbd3.html
+++ b/static/new_status-dnbd3.html
@@ -52,28 +52,8 @@
-
+
-
-
-
-
@@ -115,8 +95,7 @@ setInterval( function() {
if ( servClSpeeds.fresh !== 0 ) { update_sortedClSpeeds(servClSpeeds); }
if ( sortedClSpeeds.fresh !== 0 ) {
- // TODO:
- // do stuff with the sorted stuff and stuff and stuff
+
dostuff( sortedClSpeeds, serverStats );
}
@@ -333,8 +312,6 @@ function dostuff( obj, statsObj ) {
buildTable( serverIp, clientsArray, posibleNrOfRows, statsObj );
makeItPretty( clientsArray );
- // -- TODO figure a way to play with the colours again...consider using the whole object or just each array
- // try both...
}
}
// little helper function to wrap the Ip and replace all the . with - and add a c at the start of the ip
@@ -471,7 +448,6 @@ function speedCalc( newO, oldO ){
var localObject = {};
// time in seconds calculated from the difference of timestamps or default 2
- // TODO: ask about same timestamp
var stime = ( newO.timestamp <= oldO.timestamp ) ?
2 :
( newO.timestamp - oldO.timestamp ) / 1000;
@@ -517,8 +493,8 @@ function parseServersForStats( servers ) {
parsedServers[serverIp] = newServerObject;
}
return parsedServers;
-
}
+
// takes the whole lot of servers and returnes an object whose keys are the server ip and each ip has
// a timestamp and an adjecent clients object
// clients object is just key:value pairs
@@ -551,10 +527,6 @@ function parseServers( servers ) {
return parsedServers;
}
-
-function serversForStats( servers ) {
-
-}
// Convert bytes to GiB or TiB and return a string in form "10,23 GiB"
function bytesToString( bytes ) {
var convertedValue;
@@ -577,5 +549,4 @@ function bytesToString( bytes ) {
}
return convertedValue + unit;
}
-
\ No newline at end of file
--
cgit v1.2.3-55-g7522