HBASE-25550 More readable Competition Time (#2925)
This commit is contained in:
parent
355bccbd0b
commit
ce9c9b453f
|
@ -117,7 +117,13 @@ String parent = "";
|
||||||
<td><% task.getStatus() %>
|
<td><% task.getStatus() %>
|
||||||
(since <% StringUtils.formatTimeDiff(now, task.getStatusTime()) %>
|
(since <% StringUtils.formatTimeDiff(now, task.getStatusTime()) %>
|
||||||
ago)</td>
|
ago)</td>
|
||||||
<td><% task.getCompletionTimestamp() < 0 ? task.getState() : new Date(task.getCompletionTimestamp()) %></td>
|
<td>
|
||||||
|
<%if task.getCompletionTimestamp() < 0 %>
|
||||||
|
<% task.getState() %>
|
||||||
|
<%else>
|
||||||
|
<% new Date(task.getCompletionTimestamp()) %> (since <% StringUtils.formatTimeDiff(now, task.getCompletionTimestamp()) %> ago)
|
||||||
|
</%if>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</%for>
|
</%for>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue