diff options
author | root <root@andjedan.(none)> | 2011-08-16 08:00:46 +0430 |
---|---|---|
committer | root <root@andjedan.(none)> | 2011-08-12 16:30:17 -0700 |
commit | 9cb5ecf6956115140521d74cea8b4191634842fd (patch) | |
tree | a5d32ba73a85965e15a8a76e634be139c35d6a86 /base/core.py | |
parent | 9f43cfbf63b83cf02da8647c50a4c6dc523de5ad (diff) | |
download | hellijudge-legacy.git-0.8.tar.gz hellijudge-legacy.git-0.8.tar.xz hellijudge-legacy.git-0.8.zip |
Fix memory and time limit casting bugv0.8
Memory and time limit numbers should be casted from string to int or
else comparison between total memory and time used by user's binary
would lead judge to run user's binary with memory limit defined in
pam_limits, and time limit as double as problem time limit.
bug found at submission number 1402 @ HelliCode
Diffstat (limited to 'base/core.py')
-rw-r--r-- | base/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/core.py b/base/core.py index 6e42ebd..b60d9c3 100644 --- a/base/core.py +++ b/base/core.py @@ -34,7 +34,7 @@ PROBLEM = os.getenv("PROBLEM") LANGUAGE = os.getenv('LANGUAGE') # Reading problem specific options from problem config -[COUNT, CONFIG] = config.parse() +CONFIG = config.parse() # Initializing log prefix = SUBID + ':' + USER + ':' + PROBLEM + ':' + LANGUAGE + ': ' @@ -54,7 +54,7 @@ elif compret: # Unspecified Compilation error else: # Start running update.status ('RUN', SUBID, -1, -1); - arr = run.main (COUNT, CONFIG) + arr = run.main (CONFIG) charstat = 'CWTMRU' # [ correct, wrong, time, memory, runtime, unexpected ] |