Browse Source

Add memory usage in judge state and judge detail

pull/6/head
Menci 8 years ago
parent
commit
3d3818e1bb
  1. 4
      views/judge_detail.ejs
  2. 2
      views/judge_state.ejs

4
views/judge_detail.ejs

@ -9,6 +9,7 @@
<th>状态</th>
<th>分数</th>
<th>总时间</th>
<th>内存</th>
<th>提交者</th>
<th>提交时间</th>
</tr>
@ -23,7 +24,8 @@
<%= judge.result.status %>
</td>
<td class="score score_<%= parseInt(judge.result.score / 10) || 0 %>"><%= judge.result.score %></td>
<td><%= judge.result.total_time %> ms</td>
<td><%= judge.result.total_time %> ms</td>
<td><%= judge.result.max_memory %> KiB</td>
<% } else { %>
<td>隐藏</td>
<td>隐藏</td>

2
views/judge_state.ejs

@ -23,6 +23,7 @@
<th>状态</th>
<th>分数</th>
<th>总时间</th>
<th>内存</th>
<th>提交者</th>
<th>提交时间</th>
<th>代码</th>
@ -42,6 +43,7 @@
</a></td>
<td><a href="<%= syzoj.utils.makeUrl(['judge_detail', judge.id]) %>"><span class="score score_<%= parseInt(judge.result.score / 10) || 0 %>"><%= judge.result.score %></span></a></td>
<td><%= judge.result.total_time %> ms</td>
<td><%= judge.result.max_memory %> KiB</td>
<% } else { %>
<td>隐藏</td>
<td>隐藏</td>

Loading…
Cancel
Save