aboutsummaryrefslogtreecommitdiff
path: root/web/app/AttributeFormatter.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-30 09:16:46 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-30 09:16:46 +0500
commit164f648d107fee4a1fc47cd867096bd603a8d382 (patch)
treef542262e90ad421b4ce8601b4554e2a93c13e05a /web/app/AttributeFormatter.js
parent197d7b893e85c68040e3fba1d5d2ec0a5985bebe (diff)
downloadetbsa-traccar-web-164f648d107fee4a1fc47cd867096bd603a8d382.tar.gz
etbsa-traccar-web-164f648d107fee4a1fc47cd867096bd603a8d382.tar.bz2
etbsa-traccar-web-164f648d107fee4a1fc47cd867096bd603a8d382.zip
Do not handle case when duration less than a minute
Diffstat (limited to 'web/app/AttributeFormatter.js')
-rw-r--r--web/app/AttributeFormatter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index d555205..abe0f48 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -55,7 +55,7 @@ Ext.define('Traccar.AttributeFormatter', {
durationFormatter: function (value) {
var hours, minutes;
hours = Math.floor(value / 3600000);
- minutes = value >= 60000 ? Math.floor(value % 3600000 / 60000) : Math.round(value / 60000);
+ minutes = Math.floor(value % 3600000 / 60000);
return hours + ' ' + Strings.sharedHourAbbreviation + ' ' + minutes + ' ' + Strings.sharedMinuteAbbreviation;
},