HBASE-25550 More readable Competition Time (#2925)

This commit is contained in:
GeorryHuang 2021-02-09 05:12:24 +08:00 committed by GitHub
parent 355bccbd0b
commit ce9c9b453f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>