|
|
|
@ -140,6 +140,7 @@ class Listener(asyncio.Protocol): |
|
|
|
|
|
|
|
if self.transport and not self.transport.is_closing(): |
|
|
|
msg = f"{DISPLAY_ID} {cpu_percent:5.1f} 0\n" |
|
|
|
print(msg) |
|
|
|
self.transport.write(msg.encode()) |
|
|
|
|
|
|
|
await asyncio.sleep(1) |
|
|
|
@ -155,6 +156,7 @@ class Listener(asyncio.Protocol): |
|
|
|
|
|
|
|
if self.transport and not self.transport.is_closing(): |
|
|
|
msg = f"{DISPLAY_ID} {mem_percent:5.1f} 0\n" |
|
|
|
print(msg) |
|
|
|
self.transport.write(msg.encode()) |
|
|
|
|
|
|
|
await asyncio.sleep(1) |
|
|
|
|