diff options
author | amilasilva88 <amilasilva88@gmail.com> | 2015-08-13 20:28:58 +0800 |
---|---|---|
committer | amilasilva88 <amilasilva88@gmail.com> | 2015-08-13 20:28:58 +0800 |
commit | 0350d762a7c08199e79dc401b6c6821d7e2a21bd (patch) | |
tree | 5b0751fb43278026aee2c153ae131e17776beecd /web/app/store/SpeedUnits.js | |
parent | a5b29b0e5df4ba84c8eaa8944258b9c9e12472db (diff) | |
download | trackermap-server-0350d762a7c08199e79dc401b6c6821d7e2a21bd.tar.gz trackermap-server-0350d762a7c08199e79dc401b6c6821d7e2a21bd.tar.bz2 trackermap-server-0350d762a7c08199e79dc401b6c6821d7e2a21bd.zip |
Added ODOMeter and Modification to Mobile UI
Diffstat (limited to 'web/app/store/SpeedUnits.js')
-rw-r--r-- | web/app/store/SpeedUnits.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/app/store/SpeedUnits.js b/web/app/store/SpeedUnits.js index 78686fbb9..934d03717 100644 --- a/web/app/store/SpeedUnits.js +++ b/web/app/store/SpeedUnits.js @@ -25,9 +25,11 @@ Ext.define('Traccar.store.SpeedUnits', { convert: function(value, unit) { switch (unit) { case 'kmh': - return value * 1.852; + value = value * 1.852; + return Math.round(value * 10) / 10; case 'mph': - return value * 1.15078; + value = value * 1.15078; + return Math.round(value * 10) / 10; } return value; }, |