fix(research): normalize Compose memory limits before checking RSS

This commit is contained in:
2026-11-20 17:38:58 +03:00
parent e11ee51e90
commit 7282aa8b18
4 changed files with 14315 additions and 1 deletions
+3 -1
View File
@@ -224,7 +224,9 @@ def main():
config = json.loads(compose("config", "--format", "json"))
report["container_limits"] = {
name: {
k: service[k]
k: int(service[k])
if k in {"mem_limit", "memswap_limit", "scale"}
else service[k]
for k in ["cpus", "mem_limit", "memswap_limit", "scale"]
if k in service
}