]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the...
authorBrian Warner <warner@allmydata.com>
Tue, 30 Sep 2008 20:20:51 +0000 (13:20 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 30 Sep 2008 20:20:51 +0000 (13:20 -0700)
misc/munin/tahoe_doomsday

index 06b6c49ecb358bd32861385b649048aaf0ea4729..a46310261367bbde862a79ae1b9171293b2e797b 100644 (file)
@@ -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: