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

[tor-commits] [arm/master] fix: Control message lagging being state



commit 6a22d0c090846fe2ffb3dbb5a971cd6831d79bfb
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Fri May 13 07:35:13 2011 -0700

    fix: Control message lagging being state
    
    The control panel is the last of the old-style panels and doesn't yet support
    non-forced redraws.
---
 src/cli/controller.py |    6 +++++-
 src/util/procName.py  |   22 ++++++++++++----------
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/src/cli/controller.py b/src/cli/controller.py
index 51b64c7..5927e17 100644
--- a/src/cli/controller.py
+++ b/src/cli/controller.py
@@ -586,7 +586,11 @@ def drawTorMonitor(stdscr, startTime, loggedEvents, isBlindMode):
         newSize = stdscr.getmaxyx()
         isResize = lastSize != newSize
         lastSize = newSize
-        panels[panelKey].redraw(isResize)
+        
+        if panelKey != "control":
+          panels[panelKey].redraw(isResize)
+        else:
+          panels[panelKey].redraw(True)
       
       stdscr.refresh()
       
diff --git a/src/util/procName.py b/src/util/procName.py
index 97dc707..fab0b1e 100644
--- a/src/util/procName.py
+++ b/src/util/procName.py
@@ -1,13 +1,15 @@
-# Module to allow for arbitrary renaming of our python process. This is mostly
-# based on:
-# http://www.rhinocerus.net/forum/lang-python/569677-setting-program-name-like-0-perl.html#post2272369
-# and an adaptation by Jake: https://github.com/ioerror/chameleon
-# 
-# A cleaner implementation is available at:
-# https://github.com/cream/libs/blob/b38970e2a6f6d2620724c828808235be0445b799/cream/util/procname.py
-# but I'm not quite clear on their implementation, and it only does targeted
-# argument replacement (ie, replace argv[0], argv[1], etc but with a string
-# the same size).
+"""
+Module to allow for arbitrary renaming of our python process. This is mostly
+based on:
+http://www.rhinocerus.net/forum/lang-python/569677-setting-program-name-like-0-perl.html#post2272369
+and an adaptation by Jake: https://github.com/ioerror/chameleon
+
+A cleaner implementation is available at:
+https://github.com/cream/libs/blob/b38970e2a6f6d2620724c828808235be0445b799/cream/util/procname.py
+but I'm not quite clear on their implementation, and it only does targeted
+argument replacement (ie, replace argv[0], argv[1], etc but with a string
+the same size).
+"""
 
 import sys
 import ctypes



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