[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [nyx/master] Accounting stats only shown if paused



commit 6e9efcb9b10c8a47d15bf13772960a998c5eca9d
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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@...
    
      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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits