ndt-dev - [ndt-dev] [ndt] r1199 committed - Mb/s to Gb/s fix
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r1199 committed - Mb/s to Gb/s fix
- Date: Thu, 12 Mar 2015 12:07:26 +0000
Revision: 1199
Author:
Date: Thu Mar 12 12:07:07 2015 UTC
Log: Mb/s to Gb/s fix
https://code.google.com/p/ndt/source/detail?r=1199
Modified:
/branches/Issue173/HTML5-frontend/script.js
=======================================
--- /branches/Issue173/HTML5-frontend/script.js Wed Mar 11 14:05:20 2015 UTC
+++ /branches/Issue173/HTML5-frontend/script.js Thu Mar 12 12:07:07 2015 UTC
@@ -417,8 +417,8 @@
function printDownloadSpeed() {
var downloadSpeedVal = downloadSpeed();
- if (downloadSpeedVal >= 1024) {
- downloadSpeedVal = parseFloat(downloadSpeedVal/1024);
+ if (downloadSpeedVal >= 1000) {
+ downloadSpeedVal = parseFloat(downloadSpeedVal/1000);
document.getElementById('download-speed').innerHTML = downloadSpeedVal.toFixed(2);
document.getElementById('download-speed-units').innerHTML = 'gb/s';
} else {
@@ -429,8 +429,8 @@
function printUploadSpeed() {
var uploadSpeedVal = uploadSpeed(false);
- if (uploadSpeedVal >= 1024) {
- uploadSpeedVal = parseFloat(uploadSpeedVal/1024);
+ if (uploadSpeedVal >= 1000) {
+ uploadSpeedVal = parseFloat(uploadSpeedVal/1000);
document.getElementById('upload-speed').innerHTML = uploadSpeedVal.toFixed(2);
document.getElementById('upload-speed-units').innerHTML = 'gb/s';
} else {
- [ndt-dev] [ndt] r1199 committed - Mb/s to Gb/s fix, ndt, 03/12/2015
Archive powered by MHonArc 2.6.16.