From 7aa53b7e7c79e9c4e8b7f8bced7f8f5aaa6db77d Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Wed, 23 Jan 2019 13:48:48 -0700 Subject: [PATCH] Fixes issue #6. --- app/measure/measure.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/measure/measure.js b/app/measure/measure.js index 693a127..530720f 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -82,17 +82,17 @@ angular.module('Measure.Measure', ['ngRoute']) if (currentPhase == PHASE_UPLOAD) { $scope.currentPhase = gettextCatalog.getString('Upload'); - $scope.currentSpeed = uploadSpeedVal ? getJustfiedSpeed(uploadSpeedVal) + ' ' + getSpeedUnit(uploadSpeedVal) : gettextCatalog.getString('Initializing'); + $scope.currentSpeed = uploadSpeedVal ? getJustfiedSpeed(uploadSpeedVal) + ' Mb/s' : gettextCatalog.getString('Initializing'); } else if (currentPhase == PHASE_DOWNLOAD) { $scope.currentPhase = gettextCatalog.getString('Download'); - $scope.currentSpeed = downloadSpeedVal ? getJustfiedSpeed(downloadSpeedVal) + ' ' + getSpeedUnit(downloadSpeedVal) : gettextCatalog.getString('Initializing'); + $scope.currentSpeed = downloadSpeedVal ? getJustfiedSpeed(downloadSpeedVal) + ' Mb/s' : gettextCatalog.getString('Initializing'); } else if (currentPhase == PHASE_RESULTS) { $scope.currentPhase = gettextCatalog.getString('Complete'); $scope.currentSpeed = ''; $scope.measurementComplete = true; $scope.measurementResult = { - 's2cRate': downloadSpeed().toFixed(2) + ' ' + getSpeedUnit(downloadSpeed()), - 'c2sRate': uploadSpeed().toFixed(2) + ' ' + getSpeedUnit(uploadSpeed()), + 's2cRate': downloadSpeed().toFixed(2) + ' Mb/s', + 'c2sRate': uploadSpeed().toFixed(2) + ' Mb/s', 'latency': readNDTvar('MinRTT') + ' ms', 'loss': String((readNDTvar('loss') * 100).toFixed(2)) + "%" };