Processor usage reduction
This commit is contained in:
parent
09d8dc6ccb
commit
ae44e9495e
@ -4,6 +4,7 @@ import mqtt
|
|||||||
import report
|
import report
|
||||||
import select
|
import select
|
||||||
from systemd import journal
|
from systemd import journal
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -53,4 +54,5 @@ if __name__ == "__main__":
|
|||||||
if PLAY in entry['MESSAGE']:
|
if PLAY in entry['MESSAGE']:
|
||||||
playing = True
|
playing = True
|
||||||
send_state_msg_mqtt(mc, playing)
|
send_state_msg_mqtt(mc, playing)
|
||||||
logger.debug(str(entry['__REALTIME_TIMESTAMP'] )+ ' ' + entry['MESSAGE'])
|
logger.debug(str(entry['__REALTIME_TIMESTAMP'] )+ ' ' + entry['MESSAGE'])
|
||||||
|
time.sleep(0.1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user