Skip to content

Commit 548145f

Browse files
authored
Cat tasks output should respect time display settings (#54536) (#54735)
1 parent 705e46d commit 548145f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/rest/action/cat/RestTasksAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private void buildRow(Table table, boolean fullId, boolean detailed, DiscoveryNo
145145
table.addCell(taskInfo.getStartTime());
146146
table.addCell(FORMATTER.format(Instant.ofEpochMilli(taskInfo.getStartTime())));
147147
table.addCell(taskInfo.getRunningTimeNanos());
148-
table.addCell(TimeValue.timeValueNanos(taskInfo.getRunningTimeNanos()).toString());
148+
table.addCell(TimeValue.timeValueNanos(taskInfo.getRunningTimeNanos()));
149149

150150
// Node information. Note that the node may be null because it has left the cluster between when we got this response and now.
151151
table.addCell(fullId ? nodeId : Strings.substring(nodeId, 0, 4));

0 commit comments

Comments
 (0)