Description:
changed to_a to to_s
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r335:24f323f79504 - - 1 file changed: 1 inserted, 1 deleted
@@ -15,25 +15,25 | |||||
|
15 | def self.call_grader(params) |
|
15 | def self.call_grader(params) |
|
16 | if GraderScript.grader_control_enabled? |
|
16 | if GraderScript.grader_control_enabled? |
|
17 | cmd = File.join(GRADER_ROOT_DIR, "scripts/grader") + " " + params |
|
17 | cmd = File.join(GRADER_ROOT_DIR, "scripts/grader") + " " + params |
|
18 | system(cmd) |
|
18 | system(cmd) |
|
19 | end |
|
19 | end |
|
20 | end |
|
20 | end |
|
21 |
|
21 | ||
|
22 | def self.stop_grader(pid) |
|
22 | def self.stop_grader(pid) |
|
23 | GraderScript.call_grader "stop #{pid}" |
|
23 | GraderScript.call_grader "stop #{pid}" |
|
24 | end |
|
24 | end |
|
25 |
|
25 | ||
|
26 | def self.stop_graders(pids) |
|
26 | def self.stop_graders(pids) |
|
27 |
- pid_str = (pids.map { |process| process.pid.to_ |
|
27 | + pid_str = (pids.map { |process| process.pid.to_s }).join ' ' |
|
28 | GraderScript.call_grader "stop #{pid_str}" |
|
28 | GraderScript.call_grader "stop #{pid_str}" |
|
29 | end |
|
29 | end |
|
30 |
|
30 | ||
|
31 | def self.start_grader(env) |
|
31 | def self.start_grader(env) |
|
32 | GraderScript.call_grader "#{env} queue &" |
|
32 | GraderScript.call_grader "#{env} queue &" |
|
33 | GraderScript.call_grader "#{env} test_request &" |
|
33 | GraderScript.call_grader "#{env} test_request &" |
|
34 | end |
|
34 | end |
|
35 |
|
35 | ||
|
36 | def self.call_import_problem(problem_name, |
|
36 | def self.call_import_problem(problem_name, |
|
37 | problem_dir, |
|
37 | problem_dir, |
|
38 | time_limit=1, |
|
38 | time_limit=1, |
|
39 | memory_limit=32, |
|
39 | memory_limit=32, |
You need to be logged in to leave comments.
Login now