projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d5887
)
munin/tahoe_doomsday: oops, tolerate 'null' in the timeleft results, to unbreak the...
author
Brian Warner
<warner@allmydata.com>
Tue, 30 Sep 2008 20:20:51 +0000
(13:20 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 30 Sep 2008 20:20:51 +0000
(13:20 -0700)
misc/munin/tahoe_doomsday
patch
|
blob
|
history
diff --git
a/misc/munin/tahoe_doomsday
b/misc/munin/tahoe_doomsday
index 06b6c49ecb358bd32861385b649048aaf0ea4729..a46310261367bbde862a79ae1b9171293b2e797b 100644
(file)
--- 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: