Description:
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@192 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r52:50deb3f1e8ac - - 1 file changed: 1 inserted, 1 deleted
@@ -21,13 +21,13 | |||||
|
21 | end |
|
21 | end |
|
22 |
|
22 | ||
|
23 | def process_options(options) |
|
23 | def process_options(options) |
|
24 | i = 4 |
|
24 | i = 4 |
|
25 | while i<ARGV.length |
|
25 | while i<ARGV.length |
|
26 | if ARGV[i]=='-t' |
|
26 | if ARGV[i]=='-t' |
|
27 |
- options[:time_limit] = ARGV[i+1].to_ |
|
27 | + options[:time_limit] = ARGV[i+1].to_f if ARGV.length>i+1 |
|
28 | i += 1 |
|
28 | i += 1 |
|
29 | end |
|
29 | end |
|
30 | if ARGV[i]=='-m' |
|
30 | if ARGV[i]=='-m' |
|
31 | options[:mem_limit] = ARGV[i+1].to_i if ARGV.length>i+1 |
|
31 | options[:mem_limit] = ARGV[i+1].to_i if ARGV.length>i+1 |
|
32 | i += 1 |
|
32 | i += 1 |
|
33 | end |
|
33 | end |
You need to be logged in to leave comments.
Login now