fix(research): normalize Compose memory limits before checking RSS
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user