Remove extra newline in lang.sh. Change parsing queue to writing queue

This commit is contained in:
kuben
2019-09-19 09:55:42 +02:00
parent 9f5078611c
commit 9097a98884
4 changed files with 15 additions and 20 deletions

View File

@@ -30,7 +30,7 @@ class LemonModule(threading.Thread):
break
parsed = self.parse(line)
common.parsing_queue.put([parsed]) # TODO Wrapped in list, temporary solution
common.write_queue.put(parsed)
def stop(self):
self._stop_module()
@@ -48,7 +48,7 @@ def format_load(data, module, alert):
# Changes colors scheme to inactive when interfaces are down, or to alert when
# alert level is reached
# Returns tuple (down, up)
if data[0] == 'down': # wlan
if data[0] == 'down':
module.alt_scheme = parser.COLOR_SCHEME.INA
return ('x', 'x')
else: