
commit b6bbfd1c7e040e43a67bd13eb7bc6a0b6a1e87a1 Author: Mike Perry <mikeperry-git@fscked.org> Date: Sun Nov 20 21:40:32 2011 -0800 Use desc bw if consensus bw is missing for some log lines --- NetworkScanners/BwAuthority/aggregate.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/NetworkScanners/BwAuthority/aggregate.py b/NetworkScanners/BwAuthority/aggregate.py index 86dcf71..46dce2e 100755 --- a/NetworkScanners/BwAuthority/aggregate.py +++ b/NetworkScanners/BwAuthority/aggregate.py @@ -652,7 +652,9 @@ def main(argv): #if time.mktime(r.published.utctimetuple()) - r.uptime \ # < oldest_timestamp: missed_nodes += 1.0 - if n.bandwidth != None: + if n.bandwidth == None: + missed_bw += r.bw + else: missed_bw += n.bandwidth # We still tend to miss about 80 nodes even with these # checks.. Possibly going in and out of hibernation?