summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorVictor Mocanu2017-02-09 15:25:56 +0100
committerVictor Mocanu2017-02-09 15:25:56 +0100
commit0d6891477e5df8d46d80a0c3712bba19883fc21b (patch)
tree746f7b23d32579d8a1af5c3186af93d9bf6f65d2 /static
parentadded new_dnbd3-status.html (diff)
downloaddnbd3-status-0d6891477e5df8d46d80a0c3712bba19883fc21b.tar.gz
dnbd3-status-0d6891477e5df8d46d80a0c3712bba19883fc21b.tar.xz
dnbd3-status-0d6891477e5df8d46d80a0c3712bba19883fc21b.zip
removed unnecesary comments and ToDos
Diffstat (limited to 'static')
-rw-r--r--static/new_status-dnbd3.html35
1 files 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 @@
</head>
<body>
<div id="bigDiv">
- <!-- <div style="float:left" >
- <table class="clientTable" id="Table">
- <tbody>
- <tr class="firstRow">
- <td>Client Ip</td><td class='speed'>Download Speed from </td>
- </tr>
- </tbody>
- </table> -->
+
</div>
- <!--
- <div style="float:left">
- <table class="clientTable" id="otherTable">
- <tbody>
- <tr class="firstRow">
- <td>Client Ip</td><td class='speed'>Client Speed</td>
- </tr>
- </tbody>
- </table>
- </div> -->
- <div id="statistics"><div id="debug"></div></div>
-
- <div> <canvas id="traffic" width="100%" height="150"></canvas></div>
</body>
@@ -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;
}
-
</script> \ No newline at end of file