diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-12 11:40:03 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-12 11:40:03 +0500 |
commit | 9a55f2b000956717d5caf6fb53793264c0376ce7 (patch) | |
tree | 7f1f31d53010e652aa8396f9b1ee50f645780a4e /web/app/AttributeFormatter.js | |
parent | 8fa931a45755b14f61bcc699296337efefc46160 (diff) | |
download | traccar-server-9a55f2b000956717d5caf6fb53793264c0376ce7.tar.gz traccar-server-9a55f2b000956717d5caf6fb53793264c0376ce7.tar.bz2 traccar-server-9a55f2b000956717d5caf6fb53793264c0376ce7.zip |
- Removed decimal part
- Fixed license header
Diffstat (limited to 'web/app/AttributeFormatter.js')
-rw-r--r-- | web/app/AttributeFormatter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js index 2e0edb6d6..274b8d028 100644 --- a/web/app/AttributeFormatter.js +++ b/web/app/AttributeFormatter.js @@ -35,8 +35,8 @@ Ext.define('Traccar.AttributeFormatter', { }, hoursFormatter: function (value) { - var hours = value / 3600000; - return (hours.toFixed(2) + ' ' + Strings.sharedHourAbbreviation); + var hours = Math.round(value / 3600000); + return (hours + ' ' + Strings.sharedHourAbbreviation); }, defaultFormatter: function (value) { |