Description:
[grader] formatting output of test_request
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@140 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
r38:53204d348092 - - 1 file changed: 1 inserted, 1 deleted
@@ -146,13 +146,13 | |||||
|
146 | if res = /r(.*)u(.*)s/.match(running_time_line) |
|
146 | if res = /r(.*)u(.*)s/.match(running_time_line) |
|
147 | seconds = (res[1].to_f + res[2].to_f) |
|
147 | seconds = (res[1].to_f + res[2].to_f) |
|
148 | time_stat = "Time used: #{seconds} sec." |
|
148 | time_stat = "Time used: #{seconds} sec." |
|
149 | else |
|
149 | else |
|
150 | time_stat = "Time used: n/a sec." |
|
150 | time_stat = "Time used: n/a sec." |
|
151 | end |
|
151 | end |
|
152 | - return "#{run_stat}#{time_stat}" |
|
152 | + return "#{run_stat}\n#{time_stat}" |
|
153 | end |
|
153 | end |
|
154 |
|
154 | ||
|
155 | def save_result(test_request,result) |
|
155 | def save_result(test_request,result) |
|
156 | if result[:output_file_name]!=nil |
|
156 | if result[:output_file_name]!=nil |
|
157 | test_request.output_file_name = link_output_file(test_request, |
|
157 | test_request.output_file_name = link_output_file(test_request, |
|
158 | result[:output_file_name]) |
|
158 | result[:output_file_name]) |
You need to be logged in to leave comments.
Login now