Make sleep abort request working again for Curses UI

1) Rework the sleep abort request to set the skipsleep configuration
   setting that the sleep() code checks.
2) Only output 15 rather than 50 debug messages on abort...

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2011-11-03 14:21:25 +01:00
parent f4a32bafd6
commit f8d5f1890c
2 changed files with 35 additions and 30 deletions

View File

@ -48,7 +48,7 @@ class UIBase(object):
"""list of debugtypes we are supposed to log"""
self.debugmessages = {}
"""debugmessages in a deque(v) per thread(k)"""
self.debugmsglen = 50
self.debugmsglen = 15
self.threadaccounts = {}
"""dict linking active threads (k) to account names (v)"""
self.acct_startimes = {}