[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [depictor/master] Add the measured and consensus bandwidth weight
commit 6061a7df37f1cca636875c328b5e953da09b952f
Author: Tom Ritter <tom@xxxxxxxxx>
Date: Sat Oct 15 22:16:16 2016 -0400
Add the measured and consensus bandwidth weight
---
website.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/website.py b/website.py
index 9082387..23d48e1 100755
--- a/website.py
+++ b/website.py
@@ -934,6 +934,10 @@ class WebsiteWriter:
elif consensusFlags and flag in vote.known_flags and flag in consensusFlags:
self.site.write( "<span class=\"oic\">" + flag + "</span>")
+ if vote.routers[relay_fp].measured >= 0L:
+ self.site.write(" <br />" if flagsWritten > 0 else "")
+ self.site.write("bw=" + str(vote.routers[relay_fp].measured))
+
self.site.write("</td>\n");
else:
self.site.write(" <td></td>\n")
@@ -948,6 +952,11 @@ class WebsiteWriter:
if flag in consensusFlags:
self.site.write(flag)
+
+ if self.consensus.routers[relay_fp].bandwidth >= 0L:
+ self.site.write(" <br />" if flagsWritten > 0 else "")
+ self.site.write("bw=" + str(self.consensus.routers[relay_fp].bandwidth))
+
self.site.write("</td>\n")
else:
self.site.write(" <td></td>\n")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits