[arm/master] Don't skip bandwidth graph prepopulation for non-relays

commit d3ba32b253c58eb11a6019e79efc6e8e2808e811 Author: Damian Johnson <atagar@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
participants (1)
-
atagar@torproject.org