[tor-commits] [arm/master] Don't skip bandwidth graph prepopulation for non-relays
atagar at torproject.org
atagar at torproject.org
Tue Sep 9 02:33:48 UTC 2014
commit d3ba32b253c58eb11a6019e79efc6e8e2808e811
Author: Damian Johnson <atagar at torproject.org>
Date: Mon Sep 8 19:06:51 2014 -0700
Don't skip bandwidth graph prepopulation for non-relays
I'm not quite sure why we skipped it. Maybe the state file won't have the
bandwidth entries? Probably no harm in checking anyway.
---
arm/graphing/bandwidth_stats.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arm/graphing/bandwidth_stats.py b/arm/graphing/bandwidth_stats.py
index f8fea43..1c8b4b4 100644
--- a/arm/graphing/bandwidth_stats.py
+++ b/arm/graphing/bandwidth_stats.py
@@ -135,13 +135,7 @@ class BandwidthStats(graph_panel.GraphStats):
returns True if successful and False otherwise.
"""
- # checks that this is a relay (if ORPort is unset, then skip)
-
controller = tor_controller()
- or_port = controller.get_conf('ORPort', None)
-
- if or_port == '0':
- return
start_time = system.start_time(controller.get_pid(None))
uptime = time.time() - start_time if start_time else None
More information about the tor-commits
mailing list