Browse Source

HUE-6111 [editor] Potential display of many zeros in snippet execution time

Adrian Yavorskyy 8 years ago
parent
commit
b2855020af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/hue.utils.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/hue.utils.js

@@ -567,7 +567,7 @@ Number.prototype.toHHMMSS = function (skipZeroSeconds) {
   var n = this;
   var millis = n % 1000;
   n = (n - millis) / 1000;
-  millis = +((millis / 1000).toFixed(2)) * 100;
+  millis = +(millis/10).toFixed();
   var seconds = n % 60;
   n = (n - seconds) / 60;
   var minutes = n % 60;