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:
@@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user