From a3ba3a5a554044482d459a91a0a44e845ea24509 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 28 Dec 2017 02:31:26 +0000 Subject: [PATCH] don't propagate Name in processes2Names The name is already the id of the node, and that's what summarisation renders. Nothing looks at process.Name. --- render/process.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/render/process.go b/render/process.go index ed52641cc..c7712e535 100644 --- a/render/process.go +++ b/render/process.go @@ -146,10 +146,9 @@ func processes2Names(processes Nodes) Nodes { for _, n := range processes.Nodes { if n.Topology == Pseudo { ret.passThrough(n) - } else if name, timestamp, ok := n.Latest.LookupEntry(process.Name); ok { + } else if name, ok := n.Latest.Lookup(process.Name); ok { ret.addChildAndChildren(n, name, func(id string) report.Node { - return report.MakeNode(id).WithTopology(MakeGroupNodeTopology(n.Topology, process.Name)). - WithLatest(process.Name, timestamp, name) + return report.MakeNode(id).WithTopology(MakeGroupNodeTopology(n.Topology, process.Name)) }) } }