incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1208042 - /incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java
Date Tue, 29 Nov 2011 19:35:44 GMT
Author: ecn
Date: Tue Nov 29 19:35:43 2011
New Revision: 1208042

URL: http://svn.apache.org/viewvc?rev=1208042&view=rev
Log:
ACCUMULO-192: fix display of "Infinity%" used when unable to get capacity

Modified:
    incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java

Modified: incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java?rev=1208042&r1=1208041&r2=1208042&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java
(original)
+++ incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/monitor/servlets/DefaultServlet.java
Tue Nov 29 19:35:43 2011
@@ -274,7 +274,8 @@ public class DefaultServlet extends Basi
         
         boolean highlight = false;
         tableRow(sb, (highlight = !highlight), "Disk Used", diskUsed);
-        tableRow(sb, (highlight = !highlight), "% of Used DFS",
consumed);
+        if (fs.getUsed() != 0)
+          tableRow(sb, (highlight = !highlight), "% of Used DFS",
consumed);
         tableRow(sb, (highlight = !highlight), "<a href='/tables'>Tables</a>",
NumberType.commas(Monitor.getTotalTables()));
         tableRow(sb, (highlight = !highlight), "<a href='/tservers'>Tablet&nbsp;Servers</a>",
NumberType.commas(info.tServerInfo.size()));
         tableRow(sb, (highlight = !highlight), "<a href='/tservers'>Dead&nbsp;Tablet&nbsp;Servers</a>",
NumberType.commas(info.deadTabletServers.size()));



Mime
View raw message