commit a110aeb39e0ec129b24ab138b08742490e55212e Author: Kamran Riaz Khan krkhan@inspirated.com 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@lists.torproject.org