Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1197 committed - Fixed remaining average RTT values displaying

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1197 committed - Fixed remaining average RTT values displaying


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1197 committed - Fixed remaining average RTT values displaying
  • Date: Wed, 11 Mar 2015 14:14:59 +0000

Revision: 1197
Author:

Date: Wed Mar 11 14:14:50 2015 UTC
Log: Fixed remaining average RTT values displaying

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

Modified:
/branches/Issue171/HTML5-frontend/script.js

=======================================
--- /branches/Issue171/HTML5-frontend/script.js Wed Mar 11 12:27:16 2015 UTC
+++ /branches/Issue171/HTML5-frontend/script.js Wed Mar 11 14:14:50 2015 UTC
@@ -151,7 +151,7 @@
if (isNaN(rtt)) {
document.getElementById("rttValue").innerHTML = "n/a";
} else {
- document.getElementById("rttValue").innerHTML = rtt.toFixed(2).concat(" ms");
+ document.getElementById("rttValue").innerHTML = Math.round(rtt) + " ms";
}

if (!isNaN(pcBuffSpdLimit)) {
@@ -198,7 +198,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('latency').innerHTML = Math.round(averageRoundTrip());
document.getElementById('jitter').innerHTML = jitter().toPrecision(2);
document.getElementById("test-details").innerHTML = testDetails();
document.getElementById("test-advanced").appendChild(testDiagnosis());


  • [ndt-dev] [ndt] r1197 committed - Fixed remaining average RTT values displaying, ndt, 03/11/2015

Archive powered by MHonArc 2.6.16.

Top of Page