[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-tasks/master] add hex_digest attribute
commit 814c78aa6a6641c1be9efde1a6d58c6c6998fea0
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
Date: Fri Nov 23 22:24:12 2012 +0530
add hex_digest attribute
---
task-1854/pylinf.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/task-1854/pylinf.py b/task-1854/pylinf.py
index 1f50dc9..91ea2f8 100644
--- a/task-1854/pylinf.py
+++ b/task-1854/pylinf.py
@@ -25,6 +25,7 @@ class Router:
def __init__(self):
self.prob = None
self.bandwidth = None
+ self.hex_digest = None
self.advertised_bw = None
self.country = None
self.as_no = None
@@ -32,8 +33,8 @@ class Router:
self.is_guard = None
def add_router_info(self, values):
- hex_digest = b2a_hex(a2b_base64(values[2]+"="))
- self.advertised_bw = self.get_advertised_bw(hex_digest)
+ self.hex_digest = b2a_hex(a2b_base64(values[2]+"="))
+ self.advertised_bw = self.get_advertised_bw(self.hex_digest)
ip = values[5]
#self.country = gi_db.country_code_by_addr(ip)
#self.as_no = self.get_as_details(ip)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits