mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-01 12:26:30 -05:00
Adjusted logging
This commit is contained in:
parent
fa7699a37d
commit
70cd51f0fa
2 changed files with 12 additions and 10 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue