From decc8a5caef23e49ee1cab8651f44aa502ee4838 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Sun, 18 Mar 2018 10:18:49 +0800 Subject: [PATCH] fix typo --- server/judge_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/judge_client.py b/server/judge_client.py index 6057efa..f43b18a 100644 --- a/server/judge_client.py +++ b/server/judge_client.py @@ -96,7 +96,7 @@ class JudgeClient(object): user_output_file = os.path.join(self._submission_dir, test_case_file_id + ".out") command = self._run_config["command"].format(exe_path=self._exe_path, exe_dir=os.path.dirname(self._exe_path), - max_memory=self._max_memory / 1024).split(" ") + max_memory=int(self._max_memory / 1024)).split(" ") env = ["PATH=" + os.environ.get("PATH", "")] + self._run_config.get("env", []) run_result = _judger.run(max_cpu_time=self._max_cpu_time,