[tor-commits] [arm/master] fix: Removing case sensetivity from stat names
atagar at torproject.org
atagar at torproject.org
Fri May 20 14:45:01 UTC 2011
commit 624f13d79870fbbc1e47f17d97d105a24d12d54e
Author: Damian Johnson <atagar at torproject.org>
Date: Thu May 19 09:57:18 2011 -0700
fix: Removing case sensetivity from stat names
When making a graphed stat selection arm would crash if the string used for the
stat key contained capital letters. This wasn't a problem since the controller
used lowercase keys, but there's no reason to need this assumption.
---
src/cli/graphing/graphPanel.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cli/graphing/graphPanel.py b/src/cli/graphing/graphPanel.py
index ae8e73c..615118a 100644
--- a/src/cli/graphing/graphPanel.py
+++ b/src/cli/graphing/graphPanel.py
@@ -297,7 +297,7 @@ class GraphPanel(panel.Panel):
# applies new setting
if selection == 0: self.setStats(None)
- elif selection != -1: self.setStats(options[selection].lower())
+ elif selection != -1: self.setStats(availableStats[selection - 1])
elif key == ord('i') or key == ord('I'):
# provides menu to pick graph panel update interval
options = [label for (label, _) in UPDATE_INTERVALS]
More information about the tor-commits
mailing list