Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed wallclock_timeout when timeout = 0
  • Loading branch information
veluca93 committed Sep 13, 2013
commit 896772ed85992014d66687409030634a57d74bb2
3 changes: 2 additions & 1 deletion cms/grading/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def evaluation_step_before_run(sandbox, command,
"""
# Set sandbox parameters suitable for evaluation.
sandbox.timeout = time_limit
sandbox.wallclock_timeout = 2 * time_limit + 1
if sandbox.timeout != 0:
sandbox.wallclock_timeout = 2 * time_limit + 1
sandbox.address_space = memory_limit * 1024

if stdin_redirect is not None:
Expand Down