[tor-commits] [nyx/master] Accounting stats only shown if paused
atagar at torproject.org
atagar at torproject.org
Fri Nov 3 17:06:32 UTC 2017
commit 6e9efcb9b10c8a47d15bf13772960a998c5eca9d
Author: Damian Johnson <atagar at torproject.org>
Date: Fri Nov 3 10:07:13 2017 -0700
Accounting stats only shown if paused
Gah! Stupid me. Inverted a conditional, causing the accounting stats to not
show up until the interface is paused. Caught thanks to torix on tor-relays at ...
https://lists.torproject.org/pipermail/tor-relays/2017-November/013484.html
---
nyx/panel/graph.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nyx/panel/graph.py b/nyx/panel/graph.py
index 0d28a35..28eb620 100644
--- a/nyx/panel/graph.py
+++ b/nyx/panel/graph.py
@@ -462,7 +462,7 @@ class GraphPanel(nyx.panel.Panel):
return 0
height = DEFAULT_CONTENT_HEIGHT + self._graph_height
- accounting_stats = self._accounting_stats if nyx_interface().is_paused() else self._accounting_stats_paused
+ accounting_stats = self._accounting_stats if not nyx_interface().is_paused() else self._accounting_stats_paused
if self._displayed_stat == GraphStat.BANDWIDTH and accounting_stats:
height += 3
More information about the tor-commits
mailing list