Adjusted logging

This commit is contained in:
Mark Qvist
2026-05-25 13:48:34 +02:00
parent fa7699a37d
commit 70cd51f0fa
2 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -775,8 +775,8 @@ class WeaveDevice():
self.cpu_load = frame.data[0]
self.capture_stats_cpu()
elif frame.event == Evt.ET_STAT_MEMORY:
self.memory_free = int.from_bytes(frame.data[:4])
self.memory_total = int.from_bytes(frame.data[4:])
self.memory_free = int.from_bytes(frame.data[:4], "big")
self.memory_total = int.from_bytes(frame.data[4:], "big")
self.memory_used = self.memory_total-self.memory_free
self.memory_used_pct = round((self.memory_used/self.memory_total)*100, 2)
self.capture_stats_memory()