From 1a3f154c213ffca8c78752992c76eee823f7e4e4 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 30 Sep 2008 13:20:51 -0700
Subject: [PATCH] munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft
 results, to unbreak the 2wk/4wk graphs

---
 misc/munin/tahoe_doomsday | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc/munin/tahoe_doomsday b/misc/munin/tahoe_doomsday
index 06b6c49e..a4631026 100644
--- a/misc/munin/tahoe_doomsday
+++ b/misc/munin/tahoe_doomsday
@@ -27,7 +27,8 @@ url = os.environ["url"]
 timespans = simplejson.load(urllib.urlopen(url))["rates"]
 
 data = dict([(name, timeleft)
-             for (name, timespan, growth, timeleft) in timespans])
+             for (name, timespan, growth, timeleft) in timespans
+             if timeleft])
 # timeleft is in seconds
 DAY = 24*60*60
 if "1hr" in data:
-- 
2.45.2