ndt-dev - [ndt-dev] [ndt] r1200 committed - Packet loss display fix
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r1200 committed - Packet loss display fix
- Date: Thu, 12 Mar 2015 16:11:40 +0000
Revision: 1200
Author:
Date: Thu Mar 12 16:11:21 2015 UTC
Log: Packet loss display fix
https://code.google.com/p/ndt/source/detail?r=1200
Modified:
/branches/Issue170/HTML5-frontend/script.js
=======================================
--- /branches/Issue170/HTML5-frontend/script.js Wed Mar 11 13:17:14 2015 UTC
+++ /branches/Issue170/HTML5-frontend/script.js Thu Mar 12 16:11:21 2015 UTC
@@ -414,6 +414,11 @@
if (simulate) return 0;
return parseFloat(testNDT().get_PcBuffSpdLimit());
}
+
+function printPacketLoss() {
+ var packetLoss = parseFloat(testNDT().getNDTvar("loss"));
+ return packetLoss.toFixed(4);
+}
function testDetails() {
if (simulate) return 'Test details';
@@ -421,13 +426,15 @@
var a = testNDT();
var d = '';
+d += "error: " + testError();
+
d += "Your system: " + a.getNDTvar("OperatingSystem").bold() + "<br>";
d += "Plugin version: " + (a.getNDTvar("PluginVersion") + " (" + a.getNDTvar("OsArchitecture") + ")<br>").bold();
d += "<br>";
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 += "<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), " + a.getNDTvar("avgrtt").bold() + " msec (average)<br>";
d += "Jitter: " + a.getNDTvar("Jitter").bold() + " msec<br>";
d += a.getNDTvar("waitsec").bold() + " seconds spend waiting following a timeout<br>";
- [ndt-dev] [ndt] r1200 committed - Packet loss display fix, ndt, 03/12/2015
Archive powered by MHonArc 2.6.16.