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

[tor-commits] [arm/master] For consistency, plot bw graph even if all values are zeros.



commit a110aeb39e0ec129b24ab138b08742490e55212e
Author: Kamran Riaz Khan <krkhan@xxxxxxxxxxxxxx>
Date:   Sun Jun 26 06:10:42 2011 +0500

    For consistency, plot bw graph even if all values are zeros.
---
 src/gui/graphing/graphStats.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gui/graphing/graphStats.py b/src/gui/graphing/graphStats.py
index fcd326f..0d9ac5f 100644
--- a/src/gui/graphing/graphStats.py
+++ b/src/gui/graphing/graphStats.py
@@ -90,10 +90,8 @@ class GraphStats(TorCtl.PostEventListener):
     graph = self.graphs[name]
     data = self.get_graph_data(name)
 
-    if self.is_graph_data_zero(name):
-      graph.seriess[0].data = []
-    else:
-      graph.seriess[0].data = data
+    graph.seriess[0].data = data
+    if not self.is_graph_data_zero(name):
 
       for (index, axis) in enumerate(graph.axiss):
         if axis.type != 'xaxis':



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