Merge pull request #453 from weaveworks/452-ellipses

Don't send numeric=true for connections table.
This commit is contained in:
Tom Wilkie
2015-09-07 15:19:22 +01:00
2 changed files with 9 additions and 3 deletions

View File

@@ -180,7 +180,12 @@ func connectionsTable(connections []Row, r report.Report, n RenderableNode) (Tab
rows = append(rows, connections...)
}
if len(rows) > 0 {
return Table{"Connections", true, connectionsRank, rows}, true
return Table{
Title: "Connections",
Numeric: false,
Rank: connectionsRank,
Rows: rows,
}, true
}
return Table{}, false
}
@@ -249,6 +254,7 @@ func connectionDetailsRows(topology report.Topology, originID string) []Row {
rows = append(rows, Row{
Key: remote,
ValueMajor: local,
ValueMinor: "",
Expandable: true,
})
}

View File

@@ -103,7 +103,7 @@ func TestMakeDetailedHostNode(t *testing.T) {
},
{
Title: "Connections",
Numeric: true,
Numeric: false,
Rank: 0,
Rows: []render.Row{
{
@@ -179,7 +179,7 @@ func TestMakeDetailedContainerNode(t *testing.T) {
},
{
Title: "Connections",
Numeric: true,
Numeric: false,
Rank: 0,
Rows: []render.Row{
{"Egress packet rate", "105", "packets/sec", false},