mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Merge pull request #453 from weaveworks/452-ellipses
Don't send numeric=true for connections table.
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user