Author: andre
Date: 2010-07-15 19:20:17 +0200 (Thu, 15 Jul 2010)
New Revision: 42920

Modified:
   
mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx
Log:
display a - in stead of some weird char when no data is available


Modified: 
mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx
===================================================================
--- 
mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx
    2010-07-15 17:05:37 UTC (rev 42919)
+++ 
mmbase/trunk/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx
    2010-07-15 17:20:17 UTC (rev 42920)
@@ -231,7 +231,14 @@
             <td class="center"> ${c.misses} </td>
             <td class="center"> ${c.puts} </td>
             <td class="center"> ${c.size} / ${c.maxSize} </td>
-            <td class="center"> <fmt:formatNumber value="${c.ratio}" 
maxFractionDigits="2" type="percent" /> </td>
+            <td class="center">
+              <c:choose>
+                <c:when test="${c.ratio ne 'NaN'}"> 
+                  <fmt:formatNumber value="${c.ratio}" maxFractionDigits="2" 
type="percent" />
+                </c:when>
+                <c:otherwise>-</c:otherwise>
+              </c:choose>
+            </td>
             <td class="view">
               <c:choose>
                 <c:when test="${c.active}">

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to