[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Adds effective family size to search results (Fixes: #21368)
commit 4f1d496eed55d34c2d1419dfff6e5eb8779ad0fb
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date: Tue Nov 21 16:34:05 2017 +0000
Adds effective family size to search results (Fixes: #21368)
---
templates/search/do.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/templates/search/do.html b/templates/search/do.html
index 4feca8e..53d0ac0 100644
--- a/templates/search/do.html
+++ b/templates/search/do.html
@@ -55,7 +55,7 @@
<thead>
<tr>
<th></th>
- <th>Nickname</th>
+ <th>Nickname<sup>†</sup></th>
<th>Bandwidth</th>
<th>Uptime</th>
<th>Country</th>
@@ -81,6 +81,7 @@
<td>
<a href="#details/<%= relay.get('fingerprint') %>">
<%= _.escape(relay.get('nickname')) %>
+ <% if (!relay.get('is_bridge')) { %>(<%= relay.get('effective_family') == null ? 1 : relay.get('effective_family').length + 1 %>)<% } %>
</a>
</td>
<td><span data-filter="<%= relay.get('bandwidth') %>"><%= relay.get('bandwidth_hr') %></span></td>
@@ -123,6 +124,11 @@
<% }); %>
</tbody>
</table>
+<p><sup>†</sup>The number shown in brackets is the total effective
+family size for the relay including the relay itself. A size of 1 indicates
+that the relay does not have any other effective family members. Note that
+bridge relays do not advertise family members in their descriptors and so there
+is no value shown for bridge relays.</p>
<% } %>
</div>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits