Description:
add thousand separater for mem reportt
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r439:22297d4b2aee - - 2 files changed: 3 inserted, 3 deleted
@@ -21,9 +21,9 | |||||
|
21 | %br/ |
|
21 | %br/ |
|
22 | = "Comment: #{@submission.grader_comment}" |
|
22 | = "Comment: #{@submission.grader_comment}" |
|
23 | %br/ |
|
23 | %br/ |
|
24 |
- = "Runtime ( |
|
24 | + = "Runtime (s): #{@submission.max_runtime}" |
|
25 | %br/ |
|
25 | %br/ |
|
26 | - = "Memory (kb): #{@submission.peak_memory}" |
|
26 | + = "Memory (kb): #{number_with_delimiter(@submission.peak_memory)}" |
|
27 |
|
27 | ||
|
28 | %b Source code (first 10kb) |
|
28 | %b Source code (first 10kb) |
|
29 | //%div.highlight{:style => "border: 1px solid black;"} |
|
29 | //%div.highlight{:style => "border: 1px solid black;"} |
@@ -63,7 +63,7 | |||||
|
63 | = "#{link_to("#" + value[:runtime][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:runtime][:sub_id])} )".html_safe |
|
63 | = "#{link_to("#" + value[:runtime][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:runtime][:sub_id])} )".html_safe |
|
64 | %td |
|
64 | %td |
|
65 | = link_to value[:memory][:user], controller: 'users', action: 'profile', id: value[:memory][:user_id] |
|
65 | = link_to value[:memory][:user], controller: 'users', action: 'profile', id: value[:memory][:user_id] |
|
66 | - = "(#{value[:memory][:value]} @" |
|
66 | + = "(#{number_with_delimiter(value[:memory][:value])} @" |
|
67 | = "#{link_to("#" + value[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:memory][:sub_id])} )".html_safe |
|
67 | = "#{link_to("#" + value[:memory][:sub_id].to_s, controller: 'graders' , action: 'submission', id: value[:memory][:sub_id])} )".html_safe |
|
68 | %td |
|
68 | %td |
|
69 | = link_to value[:length][:user], controller: 'users', action: 'profile', id: value[:length][:user_id] |
|
69 | = link_to value[:length][:user], controller: 'users', action: 'profile', id: value[:length][:user_id] |
You need to be logged in to leave comments.
Login now