diff options
Diffstat (limited to 'internal/tui/dashboard/processes.go')
| -rw-r--r-- | internal/tui/dashboard/processes.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/tui/dashboard/processes.go b/internal/tui/dashboard/processes.go index 34fdbc8..f4eedec 100644 --- a/internal/tui/dashboard/processes.go +++ b/internal/tui/dashboard/processes.go @@ -42,7 +42,11 @@ func renderProcessesWithSort(snap *statsengine.Snapshot, width, height, offset, columns := processColumns() out := renderSelectableTable(columns, rows, height, offset, selectedCol, "enter:filter", "s/S:sort", processSortHint(sortState), "v:mode", "b:metric") if pidFilter > 0 { - out += "\n" + "Note: this tab is most useful with All PIDs." + // Use a Builder to avoid an extra allocation for the PID-filter note suffix. + var b strings.Builder + b.WriteString(out) + b.WriteString("\nNote: this tab is most useful with All PIDs.") + return b.String() } return out } |
