From 2a4e0382d29f6b32906642cf33fbd1ed0fef01e8 Mon Sep 17 00:00:00 2001 From: GeorryHuang <215175212@qq.com> Date: Tue, 9 Feb 2021 05:12:24 +0800 Subject: [PATCH] HBASE-25550 More readable Competition Time (#2925) --- .../apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon index 8d090276a80..9da2ffe8793 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon @@ -117,7 +117,13 @@ String parent = ""; <% task.getStatus() %> (since <% StringUtils.formatTimeDiff(now, task.getStatusTime()) %> ago) - <% task.getCompletionTimestamp() < 0 ? task.getState() : new Date(task.getCompletionTimestamp()) %> + + <%if task.getCompletionTimestamp() < 0 %> + <% task.getState() %> + <%else> + <% new Date(task.getCompletionTimestamp()) %> (since <% StringUtils.formatTimeDiff(now, task.getCompletionTimestamp()) %> ago) + +