mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the 2wk/4wk graphs
This commit is contained in:
parent
78d58875a8
commit
1a3f154c21
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user