Skip to content

Commit

Permalink
Fixes issue #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkinkade committed Jan 23, 2019
1 parent eef4540 commit 7aa53b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/measure/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) + "%"
};
Expand Down

0 comments on commit 7aa53b7

Please sign in to comment.