[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [arm/release] Minor fix for general panel stacktrace reported by atagar.
commit 4521f43d889240a24433d2b435689fcbea23769c
Author: Kamran Riaz Khan <krkhan@xxxxxxxxxxxxxx>
Date: Sat Jul 16 02:14:10 2011 +0500
Minor fix for general panel stacktrace reported by atagar.
---
src/gui/generalPanel.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gui/generalPanel.py b/src/gui/generalPanel.py
index dee96be..1f72b49 100644
--- a/src/gui/generalPanel.py
+++ b/src/gui/generalPanel.py
@@ -21,6 +21,7 @@ class GeneralPanel(CliHeaderPanel):
self.builder = builder
self.filled = False
+ self._isTorConnected = torTools.getConn().isAlive()
gobject.idle_add(self._fill_entries)
gobject.timeout_add(3000, self._timeout_fill_entries)
@@ -93,6 +94,7 @@ class GeneralPanel(CliHeaderPanel):
if self.vals["stat/rss"] != "0": memoryLabel = uiTools.getSizeLabel(int(self.vals["stat/rss"]))
else: memoryLabel = "0"
+ uptimeLabel = "N/A"
if self.vals["tor/startTime"]:
if self.isPaused() or not self._isTorConnected:
uptimeLabel = uiTools.getShortTimeLabel(self.getPauseTime() - self.vals["tor/startTime"])
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits