[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Drop measured stat.
commit 4de3324f12b0b8e28be77d69712fd7eb33b46d3d
Author: Rémi Oudin <oudin@xxxxxxxxx>
Date: Sun Mar 25 19:31:23 2018 +0200
Drop measured stat.
This statistic is misleading since it is unitless.
https://lists.torproject.org/pipermail/tor-relays/2018-January/014065.html
---
nyx/panel/graph.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/nyx/panel/graph.py b/nyx/panel/graph.py
index f56e4dd..a33aaa4 100644
--- a/nyx/panel/graph.py
+++ b/nyx/panel/graph.py
@@ -109,16 +109,12 @@ def _bandwidth_title_stats():
stats.append('burst: %s/s' % bw_burst_label)
my_router_status_entry = nyx.tracker.get_consensus_tracker().my_router_status_entry()
- measured_bw = getattr(my_router_status_entry, 'bandwidth', None)
- if measured_bw:
- stats.append('measured: %s/s' % _size_label(measured_bw))
- else:
- my_server_descriptor = controller.get_server_descriptor(default = None)
- observed_bw = getattr(my_server_descriptor, 'observed_bandwidth', None)
+ my_server_descriptor = controller.get_server_descriptor(default = None)
+ observed_bw = getattr(my_server_descriptor, 'observed_bandwidth', None)
- if observed_bw:
- stats.append('observed: %s/s' % _size_label(observed_bw))
+ if observed_bw:
+ stats.append('observed: %s/s' % _size_label(observed_bw))
return stats
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits