You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/12/20 08:04:17 UTC

[09/50] [abbrv] ignite git commit: IGNITE-4454 Minor fix for duration filter.

IGNITE-4454 Minor fix for duration filter.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9f7bc54e
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9f7bc54e
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9f7bc54e

Branch: refs/heads/ignite-zk
Commit: 9f7bc54e53b42defada1602700da8a4c1abcd223
Parents: e24d4d0
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Wed Dec 13 23:02:40 2017 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Dec 13 23:02:40 2017 +0700

----------------------------------------------------------------------
 modules/web-console/frontend/app/filters/duration.filter.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9f7bc54e/modules/web-console/frontend/app/filters/duration.filter.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/filters/duration.filter.js b/modules/web-console/frontend/app/filters/duration.filter.js
index 703b6a4..55ec7e0 100644
--- a/modules/web-console/frontend/app/filters/duration.filter.js
+++ b/modules/web-console/frontend/app/filters/duration.filter.js
@@ -36,6 +36,6 @@ export default [() => {
         const s = Math.floor((t - d * cd - h * ch - m * cm) / cs);
         const ms = Math.round(t % 1000);
 
-        return a(d, 'd') + a(h, 'h') + a(m, 'm') + a(s, 's') + (t === 0 || (t < cm && ms !== 0) ? ms + 'ms' : '');
+        return a(d, 'd') + a(h, 'h') + a(m, 'm') + a(s, 's') + (t < 1000 || (t < cm && ms !== 0) ? ms + 'ms' : '');
     };
 }];