Description:
[web] changed column type for running_time in test_requests, display new stat info
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@162 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
r82:8ff8f19e9fbb - - 3 files changed: 9 inserted, 4 deleted
@@ -1,13 +1,18 | |||
|
1 | 1 | = user_title_bar(@user) |
|
2 | 2 | |
|
3 | - %div{:style => "text-align: center"} | |
|
3 | + %div{:style => "text-align: center; font-size: 12px"} | |
|
4 | 4 | = "Problem: #{@test_request.problem.full_name}" |
|
5 | 5 | %br/ |
|
6 | 6 | = "Submission: #{@test_request.submission.number}" |
|
7 | 7 | %br/ |
|
8 | 8 | = "Test submitted at: #{format_short_time(@test_request.submitted_at)}" |
|
9 | 9 | %br/ |
|
10 | - = simple_format((@test_request.running_stat or '')) | |
|
10 | + = "Execution time: #{@test_request.running_time} s." | |
|
11 | + %br/ | |
|
12 | + = "Memory usage: #{@test_request.memory_usage}" | |
|
13 | + %br/ | |
|
14 | + %b= @test_request.exit_status | |
|
15 | + %br/ | |
|
11 | 16 | |
|
12 | 17 | - if @test_request.compiler_message!=nil and @test_request.compiler_message!='' |
|
13 | 18 | %b Compiler Message |
@@ -1,6 +1,6 | |||
|
1 | 1 | class AddRunstatColumnsToTestRequest < ActiveRecord::Migration |
|
2 | 2 | def self.up |
|
3 |
- add_column :test_requests, :running_time, :t |
|
|
3 | + add_column :test_requests, :running_time, :float | |
|
4 | 4 | add_column :test_requests, :exit_status, :string |
|
5 | 5 | add_column :test_requests, :memory_usage, :integer |
|
6 | 6 | end |
You need to be logged in to leave comments.
Login now