[CalendarServer-changes] [12801] CalendarServer/trunk/calendarserver/webadmin/work.xhtml

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 4 15:07:46 PST 2014


Revision: 12801
          http://trac.calendarserver.org//changeset/12801
Author:   wsanchez at apple.com
Date:     2014-03-04 15:07:46 -0800 (Tue, 04 Mar 2014)
Log Message:
-----------
Don't let log(0) happen

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/webadmin/work.xhtml

Modified: CalendarServer/trunk/calendarserver/webadmin/work.xhtml
===================================================================
--- CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-03-04 22:54:32 UTC (rev 12800)
+++ CalendarServer/trunk/calendarserver/webadmin/work.xhtml	2014-03-04 23:07:46 UTC (rev 12801)
@@ -188,7 +188,10 @@
         // Update bars selection
         bars
           .attr("class", "bar")
-          .attr("width", function(i) { return xLocation(i.count); })
+          .attr("width", function(i) {
+            if (i.count < 1) { return 0; }
+            return xLocation(i.count);
+          })
           .attr("height", yLocation.rangeBand())
           .attr(
             "transform",
@@ -206,7 +209,7 @@
         data = {};
 
         for (key in workTableDescriptions) {
-          data[key] = 0;
+          data[key] = 0.1;
         }
 
         drawChart(data);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140304/7fb5275e/attachment.html>


More information about the calendarserver-changes mailing list