Skip to content

Commit

Permalink
HBASE-25550 More readable Competition Time (apache#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorryHuang authored and sunxin committed Feb 9, 2021
1 parent f876352 commit b0d4a8e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b0d4a8e

Please sign in to comment.