feat: refactors

This commit is contained in:
Barrett Ruth 2026-01-27 14:23:23 -05:00
parent d4c5f08b5f
commit 4c5c44742e
3 changed files with 98 additions and 93 deletions

View file

@ -142,7 +142,7 @@ function M.run(cmd, stdin, timeout_ms, memory_mb, on_complete)
or lower:find('enomem', 1, true)
local near_cap = peak_mb >= (0.90 * memory_mb)
local mled = (peak_mb >= memory_mb) or near_cap or (oom_hint and not tled)
local mled = (peak_mb >= memory_mb) or near_cap or (oom_hint ~= nil and not tled)
if tled then
logger.log(('Execution timed out in %.1fms.'):format(dt))