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.
This commit is contained in:
Matthias Radestock
2017-12-28 02:31:26 +00:00
parent d7e90303a6
commit a3ba3a5a55

View File

@@ -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))
})
}
}