Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1193 committed - Revert jitter value display fix from trunk

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1193 committed - Revert jitter value display fix from trunk


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1193 committed - Revert jitter value display fix from trunk
  • Date: Wed, 11 Mar 2015 13:17:25 +0000

Revision: 1193
Author:

Date: Wed Mar 11 13:17:14 2015 UTC
Log: Revert jitter value display fix from trunk

https://code.google.com/p/ndt/source/detail?r=1193

Modified:
/trunk/HTML5-frontend/script.js
/trunk/HTML5-frontend/widget.html

=======================================
--- /trunk/HTML5-frontend/script.js Wed Mar 11 13:13:36 2015 UTC
+++ /trunk/HTML5-frontend/script.js Wed Mar 11 13:17:14 2015 UTC
@@ -199,7 +199,7 @@
document.getElementById('upload-speed').innerHTML = uploadSpeed().toPrecision(2);
document.getElementById('download-speed').innerHTML = downloadSpeed().toPrecision(2);
document.getElementById('latency').innerHTML = averageRoundTrip().toPrecision(2);
- document.getElementById('jitter').innerHTML = printJitter(false);
+ document.getElementById('jitter').innerHTML = jitter().toPrecision(2);
document.getElementById("test-details").innerHTML = testDetails();
document.getElementById("test-advanced").appendChild(testDiagnosis());
document.getElementById('javaButton').disabled = false;
@@ -414,17 +414,6 @@
if (simulate) return 0;
return parseFloat(testNDT().get_PcBuffSpdLimit());
}
-
-function printJitter(boldValue) {
- var retStr = '';
- var jitterValue = jitter();
- if (jitterValue >= 1000) {
- retStr += (boldValue ? '<b>' : '') + jitterValue/1000 + (boldValue ? '</b>' : '') + ' sec';
- } else {
- retStr += (boldValue ? '<b>' : '') + jitterValue + (boldValue ? '</b>' : '') + ' msec';
- }
- return retStr;
-}

function testDetails() {
if (simulate) return 'Test details';
@@ -440,7 +429,7 @@
d += "TCP receive window: " + a.getNDTvar("CurRwinRcvd").bold() + " current, " + a.getNDTvar("MaxRwinRcvd").bold() + " maximum<br>";
d += a.getNDTvar("loss").bold() + " packets lost during test<br>";
d += "Round trip time: " + a.getNDTvar("MinRTT").bold() + " msec (minimum), " + a.getNDTvar("MaxRTT").bold() + " msec (maximum), " + a.getNDTvar("avgrtt").bold() + " msec (average)<br>";
- d += "Jitter: " + printJitter(true) + "<br>";
+ d += "Jitter: " + a.getNDTvar("Jitter").bold() + " msec<br>";
d += a.getNDTvar("waitsec").bold() + " seconds spend waiting following a timeout<br>";
d += "TCP time-out counter: " + a.getNDTvar("CurRTO").bold() + "<br>";
d += a.getNDTvar("SACKsRcvd").bold() + " selective acknowledgement packets received<br>";
=======================================
--- /trunk/HTML5-frontend/widget.html Wed Mar 11 13:13:36 2015 UTC
+++ /trunk/HTML5-frontend/widget.html Wed Mar 11 13:17:14 2015 UTC
@@ -109,7 +109,7 @@

<div class="other">
<p class="latency"><b>Network latency:</b> <span id="latency">0.0</span> msec round trip time</p>
- <p class="jitter"><b>Jitter:</b> <span id="jitter">0.0 msec</span></p>
+ <p class="jitter"><b>Jitter:</b> <span id="jitter">0.0</span> msec</p>
</div>

</div>


  • [ndt-dev] [ndt] r1193 committed - Revert jitter value display fix from trunk, ndt, 03/11/2015

Archive powered by MHonArc 2.6.16.

Top of Page