Skip to content

Commit e4b5b36

Browse files
committed
container-runner.py: fix sysctl checks
1 parent 777a1a9 commit e4b5b36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

eval/container-runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import tempfile
1616
import time
1717
import random
18+
import sys
1819

1920
from collections import defaultdict
2021
from socket import gethostname
@@ -73,7 +74,7 @@ def time_as_seconds(v: str):
7374
key: int((Path("/proc/sys/") / key.replace(".", "/")).read_text().strip())
7475
for key in REQS
7576
}
76-
satisfied = all(expected >= actual[key] for key, expected in REQS.items())
77+
satisfied = all(actual[key] >= expected for key, expected in REQS.items())
7778
if not satisfied:
7879
print(f"[WARN] spawning {os.cpu_count()} containers with podman would run into kernel limits:")
7980
for key, value in actual.items():

0 commit comments

Comments
 (0)