commit 4aef555236bfa22bec0edf571e3de44011a2188d
Author: Mike Perry <[email protected]>
Date:   Sun Nov 20 21:38:45 2011 -0800

    Add some notifications for #4359/#2286.
---
 NetworkScanners/BwAuthority/aggregate.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/NetworkScanners/BwAuthority/aggregate.py 
b/NetworkScanners/BwAuthority/aggregate.py
index fc16f67..86dcf71 100755
--- a/NetworkScanners/BwAuthority/aggregate.py
+++ b/NetworkScanners/BwAuthority/aggregate.py
@@ -664,6 +664,16 @@ def main(argv):
     plog("NOTICE", "Did not measure "+str(MIN_REPORT)+"% of nodes yet 
("+str(measured_pct)+"%)")
     sys.exit(1)
 
+  # Notification hack because #2286/#4359 is annoying arma
+  if measured_bw_pct < 75:
+    plog("WARN",
+         "Only measured %f of the previous consensus bandwidth despite 
measuring %f of the nodes" %
+         (measured_bw_pct, measured_pct))
+  elif measured_bw_pct < 95:
+    plog("NOTICE",
+         "Only measured %f of the previous consensus bandwidth despite 
measuring %f of the nodes" %
+         (measured_bw_pct, measured_pct))
+
   plog("INFO",
        "Measured "+str(measured_pct) +"% of all tor nodes ("
        +str(measured_bw_pct)+"% of previous consensus bw).")



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to