Skip to content

Commit

Permalink
Merge pull request #453 from weaveworks/452-ellipses
Browse files Browse the repository at this point in the history
Don't send numeric=true for connections table.
  • Loading branch information
tomwilkie committed Sep 7, 2015
2 parents 9ab98ba + 303e11b commit 6a6622e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion render/detailed_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -249,6 +254,7 @@ func connectionDetailsRows(topology report.Topology, originID string) []Row {
rows = append(rows, Row{
Key: remote,
ValueMajor: local,
ValueMinor: "",
Expandable: true,
})
}
Expand Down
4 changes: 2 additions & 2 deletions render/detailed_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestMakeDetailedHostNode(t *testing.T) {
},
{
Title: "Connections",
Numeric: true,
Numeric: false,
Rank: 0,
Rows: []render.Row{
{
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 6a6622e

Please sign in to comment.