From 27c2f3a5d2ef2db6d2a63bc8a244868751d4bbfc Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 28 Dec 2017 00:51:58 +0000 Subject: [PATCH] refactor: use propagateLatest instead of the equivalent long-hand code. --- render/process.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/render/process.go b/render/process.go index 2e9b3804d..092ba00d2 100644 --- a/render/process.go +++ b/render/process.go @@ -53,9 +53,7 @@ func (r processWithContainerNameRenderer) Render(rpt report.Report) Nodes { if !ok { continue } - if containerName, timestamp, ok := container.Latest.LookupEntry(docker.ContainerName); ok { - p.Latest = p.Latest.Set(docker.ContainerName, timestamp, containerName) - } + propagateLatest(docker.ContainerName, container, p) outputs[id] = p } return Nodes{Nodes: outputs, Filtered: processes.Filtered}