munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the 2wk/4wk graphs

This commit is contained in:
Brian Warner 2008-09-30 13:20:51 -07:00
parent 78d58875a8
commit 1a3f154c21

View File

@ -27,7 +27,8 @@ url = os.environ["url"]
timespans = simplejson.load(urllib.urlopen(url))["rates"] timespans = simplejson.load(urllib.urlopen(url))["rates"]
data = dict([(name, timeleft) data = dict([(name, timeleft)
for (name, timespan, growth, timeleft) in timespans]) for (name, timespan, growth, timeleft) in timespans
if timeleft])
# timeleft is in seconds # timeleft is in seconds
DAY = 24*60*60 DAY = 24*60*60
if "1hr" in data: if "1hr" in data: