From: Brian Warner Date: Tue, 30 Sep 2008 20:20:51 +0000 (-0700) Subject: munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/rgr-080307.php?a=commitdiff_plain;h=1a3f154c213ffca8c78752992c76eee823f7e4e4;p=tahoe-lafs%2Ftahoe-lafs.git munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the 2wk/4wk graphs --- 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: