rendering: simplify ContainerHostnameRenderer

The second half of the render added all the same nodes, except for
those with no Docker image information, so we could show a figure for
those filtered out on that basis.

This just isn't worth the effort.
This commit is contained in:
Bryan Boreham
2019-11-01 19:14:35 +00:00
parent bbce9e3d69
commit 875fdba352

View File

@@ -171,20 +171,9 @@ var ContainerImageRenderer = Memoise(FilterEmpty(report.Container,
//
// not memoised
var ContainerHostnameRenderer = FilterEmpty(report.Container,
MakeReduce(
MakeMap(
MapContainer2Hostname,
ContainerWithImageNameRenderer,
),
// Grab *all* the hostnames, so we can count the number which were empty
// for accurate stats.
MakeMap(
MapToEmpty,
MakeMap(
MapContainer2Hostname,
ContainerRenderer,
),
),
MakeMap(
MapContainer2Hostname,
ContainerWithImageNameRenderer,
),
)