Author: andre Date: 2010-07-15 19:21:10 +0200 (Thu, 15 Jul 2010) New Revision: 42921
Modified: mmbase/branches/MMBase-1_9/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/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx =================================================================== --- mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx 2010-07-15 17:20:17 UTC (rev 42920) +++ mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/components/core/cache/index.jspx 2010-07-15 17:21:10 UTC (rev 42921) @@ -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