[tor-commits] [atlas/master] Add a field showing the relay's consensus weight under `Properties'. This

karsten at torproject.org karsten at torproject.org
Sun Jul 28 17:52:07 UTC 2013


commit af0b23d6fae93952dee69e046e3b823a96280cbf
Author: Philipp Winter <phw at torproject.org>
Date:   Sun Jul 28 13:54:05 2013 +0200

    Add a field showing the relay's consensus weight under `Properties'.  This
    should fix ticket #9231.
---
 templates/details/main.html |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/templates/details/main.html b/templates/details/main.html
index 5d3f714..722504d 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -90,6 +90,9 @@
     <dt><span class="tip" data-content="What OS and Tor version the relay is using" data-original-title="Platform">Platform</span></dt>
     <dd><%= _.escape(relay.get('platform')) %></dd>
 
+    <dt><span class="tip" data-content="Weight assigned to this relay by the directory authorities that clients use in their path selection algorithm. The unit is arbitrary; currently it's kilobytes per second, but that might change in the future." data-original-title="Consensus Weight">Consensus Weight</span></dt>
+    <dd><%= relay.get('consensus_weight') %></dd>
+
     </dl>
     </div>
     <div class="span4">



More information about the tor-commits mailing list