[tor-commits] [metrics-tasks/master] Display the number of visible relays (#6443)

karsten at torproject.org karsten at torproject.org
Thu Jun 27 08:40:10 UTC 2013


commit 78c73926570d097f7ef5b65a53bfb3fafc91d01c
Author: Lunar <lunar at torproject.org>
Date:   Fri Jun 21 17:29:31 2013 +0200

    Display the number of visible relays (#6443)
---
 task-6443/bubble-cw/bubble-cw.html |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/task-6443/bubble-cw/bubble-cw.html b/task-6443/bubble-cw/bubble-cw.html
index 9d075fd..1827c7c 100644
--- a/task-6443/bubble-cw/bubble-cw.html
+++ b/task-6443/bubble-cw/bubble-cw.html
@@ -75,7 +75,7 @@ d3.json("details.json", function(error, data) {
   var title = svg.append("g")
       .attr("transform", "translate(" + (diameter / 3) +", " + (diameter - 30) + ")");
   title.append("text")
-      .text(relays.length + " relays")
+      .text(relays.length + " relays (" + (node.filter(function(d) { return d.r > 1; }).size()) + " visible)")
       .attr("text-anchor", "middle")
       .attr("style", "font-size: 18pt");
   title.append("text")





More information about the tor-commits mailing list