mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-15 03:20:03 +00:00
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:
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user