mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
Fix memory stats calc (#2518)
This commit is contained in:
parent
48f8553c75
commit
ed8f2a85b7
@ -14,7 +14,9 @@ class DockerStats:
|
||||
self._blk_write = 0
|
||||
|
||||
try:
|
||||
self._memory_usage = stats["memory_stats"]["usage"]
|
||||
self._memory_usage = (
|
||||
stats["memory_stats"]["usage"] - stats["memory_stats"]["stats"]["cache"]
|
||||
)
|
||||
self._memory_limit = stats["memory_stats"]["limit"]
|
||||
except KeyError:
|
||||
self._memory_usage = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user