1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 04:20:17 +01:00

migliorie minime sul feedback

This commit is contained in:
mfrasca
2007-05-16 17:25:22 +00:00
parent 4b16346067
commit 89b2fdd9ee

View File

@@ -133,10 +133,11 @@ class Application(wmoo.Application):
if rpos != 0: if rpos != 0:
if self._buffered.startswith('Cache fill:'): if self._buffered.startswith('Cache fill:'):
self._buffering = 2 self._buffering = 2
match = self._feedback.match(self._buffered[rpos-90:rpos]) else:
if match: match = self._feedback.match(self._buffered[rpos-90:rpos])
self._buffering = 0 if match:
self._cacheLevel = float(match.group(1)) self._buffering = 0
self._cacheLevel = float(match.group(1))
self._buffered = self._buffered[rpos:] self._buffered = self._buffered[rpos:]
self.showCacheLevel() self.showCacheLevel()
@@ -146,7 +147,7 @@ palette = {
".": "#868682", ".": "#868682",
"X": "#AEAEAA", "X": "#AEAEAA",
"o": "#F7F7F3", "o": "#F7F7F3",
"r": "#F70000", "r": "#F7A0A0",
"i": "#00F700", "i": "#00F700",
} }