[tor-commits] [arm/release] Seperate cache entries for header and circ lines.
atagar at torproject.org
atagar at torproject.org
Sun Jul 17 06:08:31 UTC 2011
commit 16358dd0ab9c413c989adfe7b35dbae5c4b1abc4
Author: Kamran Riaz Khan <krkhan at inspirated.com>
Date: Sat Jul 9 17:09:49 2011 +0500
Seperate cache entries for header and circ lines.
---
src/gui/connections/connPanel.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gui/connections/connPanel.py b/src/gui/connections/connPanel.py
index 4f89b30..29f18b7 100644
--- a/src/gui/connections/connPanel.py
+++ b/src/gui/connections/connPanel.py
@@ -49,7 +49,7 @@ class ConnectionPanel(CliConnectionPanel):
local = "%s:%s" % (line.local.ipAddr, line.local.port)
foreign = "%s:%s" % (line.foreign.ipAddr, line.foreign.port)
- cachekey = (local, foreign)
+ cachekey = (local, foreign, isinstance(line, circEntry.CircHeaderLine))
if self.cache.has_key(cachekey):
timeLabel = "%d s" % (time.time() - line.startTime)
treestore.set_value(self.cache[cachekey], 2, timeLabel)
@@ -82,7 +82,7 @@ class ConnectionPanel(CliConnectionPanel):
else:
currentiter = treestore.append(None, row)
- cachekey = (local, foreign)
+ cachekey = (local, foreign, isinstance(line, circEntry.CircHeaderLine))
self.cache[cachekey] = currentiter
self.valsLock.release()
More information about the tor-commits
mailing list