Author: justi9
Date: 2008-12-05 17:50:42 -0500 (Fri, 05 Dec 2008)
New Revision: 2946
Modified:
mgmt/trunk/cumin/python/cumin/charts.py
Log:
Very slightly more elegant handling of null values
Modified: mgmt/trunk/cumin/python/cumin/charts.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/charts.py 2008-12-05 22:43:52 UTC (rev 2945)
+++ mgmt/trunk/cumin/python/cumin/charts.py 2008-12-05 22:50:42 UTC (rev 2946)
@@ -29,8 +29,8 @@
for dt, value in samples:
if value is None:
- log.warn("Unexpected null value") # XXX
- value = 0
+ log.debug("Unexpected null value") # XXX
+ continue
t = secs(dt)
# prevent line from drawing off right side of grid
Show replies by date