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