mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Remove (comm) from Name field in detail pane
This commit is contained in:
@@ -194,7 +194,7 @@ func addressOriginTable(nmd report.NodeMetadata) (Table, bool) {
|
||||
func processOriginTable(nmd report.NodeMetadata) (Table, bool) {
|
||||
rows := []Row{}
|
||||
for _, tuple := range []struct{ key, human string }{
|
||||
{process.Comm, "Name (comm)"},
|
||||
{process.Comm, "Name"},
|
||||
{process.PID, "PID"},
|
||||
{process.PPID, "Parent PID"},
|
||||
{process.Cmdline, "Command"},
|
||||
|
||||
@@ -26,7 +26,7 @@ func TestOriginTable(t *testing.T) {
|
||||
Numeric: false,
|
||||
Rank: 2,
|
||||
Rows: []render.Row{
|
||||
{"Name (comm)", "apache", ""},
|
||||
{"Name", "apache", ""},
|
||||
{"PID", test.ServerPID, ""},
|
||||
},
|
||||
},
|
||||
@@ -85,7 +85,7 @@ func TestMakeDetailedNode(t *testing.T) {
|
||||
Numeric: false,
|
||||
Rank: 2,
|
||||
Rows: []render.Row{
|
||||
{"Name (comm)", "apache", ""},
|
||||
{"Name", "apache", ""},
|
||||
{"PID", test.ServerPID, ""},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user