accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-1536 fixed load average presentation
Date Fri, 11 Oct 2013 20:15:37 GMT
Updated Branches:
  refs/heads/master cb45e89b0 -> 142f07c4c


ACCUMULO-1536 fixed load average presentation


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

Branch: refs/heads/master
Commit: d10ec173d874f73588fa44a7cc811a66a42add70
Parents: 3976e0a
Author: Eric Newton <eric.newton@gmail.com>
Authored: Fri Oct 11 16:15:40 2013 -0400
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Fri Oct 11 16:15:40 2013 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/accumulo/core/util/NumUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/d10ec173/core/src/main/java/org/apache/accumulo/core/util/NumUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/NumUtil.java b/core/src/main/java/org/apache/accumulo/core/util/NumUtil.java
index 179c586..ebc8c4f 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/NumUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/NumUtil.java
@@ -46,7 +46,7 @@ public class NumUtil {
   }
 
   private static String bigNumber(double big, String[] SUFFIXES, long base) {
-    if (big < base) return df.format(big) + SUFFIXES[0];
+    if (big < base) return df_mantissa.format(big) + SUFFIXES[0];
     int exp = (int) (Math.log(big) / Math.log(base));
     double val = big / Math.pow(base, exp);
     return df_mantissa.format(val) + SUFFIXES[exp];


Mime
View raw message