ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntikho...@apache.org
Subject [05/50] [abbrv] ignite git commit: IGNITE-2690: Format of uptime for metrics
Date Tue, 22 Mar 2016 16:49:41 GMT
IGNITE-2690: Format of uptime for metrics


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

Branch: refs/heads/ignite-2004
Commit: 06f0c915bcc76ebf1e2fed74c8ad17d4f8031a59
Parents: 21cfc2b
Author: Alper Tekinalp <alper.tekinalp@gmail.com>
Authored: Fri Mar 11 12:43:53 2016 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Fri Mar 11 12:43:53 2016 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/internal/util/typedef/X.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/06f0c915/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java b/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java
index 65b89bf..174ab86 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java
@@ -213,7 +213,7 @@ public final class X {
         return (t[3] < 10 ? "0" + t[3] : Long.toString(t[3])) + ':' +
             (t[2] < 10 ? "0" + t[2] : Long.toString(t[2])) + ':' +
             (t[1] < 10 ? "0" + t[1] : Long.toString(t[1])) + ':' +
-            (t[0] < 10 ? "0" + t[0] : Long.toString(t[0]));
+            (t[0] < 10 ? "00" + t[0] : ( t[0] < 100 ? "0" + t[0] : Long.toString(t[0])));
     }
 
     /**


Mime
View raw message