diff options
-rw-r--r-- | static/new_status-dnbd3.html | 35 |
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 |