Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1215 committed - Merge Issue169 branch into trunkx

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1215 committed - Merge Issue169 branch into trunkx


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1215 committed - Merge Issue169 branch into trunkx
  • Date: Fri, 20 Mar 2015 12:12:46 +0000

Revision: 1215
Author:

Date: Fri Mar 20 12:12:24 2015 UTC
Log: Merge Issue169 branch into trunkx

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

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

=======================================
--- /trunk/HTML5-frontend/script.js Fri Mar 20 12:10:22 2015 UTC
+++ /trunk/HTML5-frontend/script.js Fri Mar 20 12:12:24 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 = Math.round(averageRoundTrip());
- document.getElementById('jitter').innerHTML = jitter().toPrecision(2);
+ document.getElementById('jitter').innerHTML = printJitter(false);
document.getElementById("test-details").innerHTML = testDetails();
document.getElementById("test-advanced").appendChild(testDiagnosis());
document.getElementById('javaButton').disabled = false;
@@ -419,6 +419,17 @@
var packetLoss = parseFloat(testNDT().getNDTvar("loss"));
return packetLoss.toFixed(4);
}
+
+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';
@@ -434,7 +445,7 @@
d += "TCP receive window: " + a.getNDTvar("CurRwinRcvd").bold() + " current, " + a.getNDTvar("MaxRwinRcvd").bold() + " maximum<br>";
d += "<b>" + printPacketLoss() + "</b> % of packets lost during test<br>";
d += "Round trip time: " + a.getNDTvar("MinRTT").bold() + " msec (minimum), " + a.getNDTvar("MaxRTT").bold() + " msec (maximum), <b>" + Math.round(averageRoundTrip()) + "</b> msec (average)<br>";
- d += "Jitter: " + a.getNDTvar("Jitter").bold() + " msec<br>";
+ d += "Jitter: " + printJitter(true) + "<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:17:14 2015 UTC
+++ /trunk/HTML5-frontend/widget.html Fri Mar 20 12:12:24 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</span> msec</p>
+ <p class="jitter"><b>Jitter:</b> <span id="jitter">0.0 msec</span></p>
</div>

</div>


  • [ndt-dev] [ndt] r1215 committed - Merge Issue169 branch into trunkx, ndt, 03/20/2015

Archive powered by MHonArc 2.6.16.

Top of Page