HBASE-25550 More readable Competition Time (#2925)

This commit is contained in:
GeorryHuang 2021-02-09 05:12:24 +08:00 committed by stack
parent 6fd23b2a11
commit 2a4e0382d2
1 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,13 @@ String parent = "";
<td><% task.getStatus() %>
(since <% StringUtils.formatTimeDiff(now, task.getStatusTime()) %>
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>
</%for>
</table>