[tor-commits] [metrics-web/master] Use "as" field for bubble graphs

karsten at torproject.org karsten at torproject.org
Wed Sep 12 10:23:43 UTC 2018


commit b74b569361ca3b9bc4b0c96dcd8632c11c58dd61
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Wed Sep 12 10:23:10 2018 +0100

    Use "as" field for bubble graphs
---
 src/main/resources/web/js/bubbles.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/web/js/bubbles.js b/src/main/resources/web/js/bubbles.js
index b8c7194..ca88505 100644
--- a/src/main/resources/web/js/bubbles.js
+++ b/src/main/resources/web/js/bubbles.js
@@ -7,9 +7,9 @@ var graphs = {
          group_id_func: function(relay) { return undefined; },
          group_name_func: function(relay) { return 'Relays'; },
   }, 'as': {
-         extra_fields: ['as_number', 'as_name'],
+         extra_fields: ['as', 'as_name'],
          group: "autonomous systems",
-         group_id_func: function(relay) { return relay.as_number; },
+         group_id_func: function(relay) { return relay.as; },
          group_name_func: function(relay) { return relay.as_name; },
   }, 'contact': {
          extra_fields: ['contact'],



More information about the tor-commits mailing list