Skip to content

Commit

Permalink
Update judge_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Dong123 committed Jun 4, 2024
1 parent c092ff7 commit 0700b9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/judge_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ def _spj(self, in_file_path, user_out_file_path, ans_file_path):
)
command = shlex.split(command)
seccomp_rule_name = self._spj_config["seccomp_rule"]
seccomp_rule_name = None
logger.warning("%s\n%s\n%s", in_file_path, user_out_file_path, ans_file_path)
result = judger.run(
max_cpu_time=self._max_cpu_time * 3,
max_real_time=self._max_cpu_time * 9,
Expand All @@ -137,6 +135,7 @@ def _spj(self, in_file_path, user_out_file_path, ans_file_path):
uid=SPJ_USER_UID,
gid=SPJ_GROUP_GID,
)
logger.warning(f"spj result: {result}")

if result["result"] == judger.RESULT_SUCCESS or (
result["result"] == judger.RESULT_RUNTIME_ERROR
Expand Down

0 comments on commit 0700b9e

Please sign in to comment.