diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-01 23:45:37 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-01 23:45:37 +0200 |
| commit | 5775246cb9c2ccfb3469addf6f5fe9a8fc198171 (patch) | |
| tree | 96290d1bede538c9fd352bc3954bac1ce8ab6873 /internal/tui/dashboard/processes.go | |
| parent | 3b4be9171b7ca13d4ff3e51d14c4e569b1a308f7 (diff) | |
Thread runtime config instead of global flags reads
Diffstat (limited to 'internal/tui/dashboard/processes.go')
| -rw-r--r-- | internal/tui/dashboard/processes.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/tui/dashboard/processes.go b/internal/tui/dashboard/processes.go index 03a38f1..281a86a 100644 --- a/internal/tui/dashboard/processes.go +++ b/internal/tui/dashboard/processes.go @@ -2,7 +2,6 @@ package dashboard import ( "fmt" - "ior/internal/flags" "ior/internal/statsengine" "strconv" "strings" @@ -11,10 +10,10 @@ import ( ) func renderProcesses(snap *statsengine.Snapshot, width, height int) string { - return renderProcessesWithOffset(snap, width, height, 0) + return renderProcessesWithOffset(snap, width, height, 0, -1) } -func renderProcessesWithOffset(snap *statsengine.Snapshot, width, height, offset int) string { +func renderProcessesWithOffset(snap *statsengine.Snapshot, width, height, offset, pidFilter int) string { if snap == nil { return "Processes: waiting for stats..." } @@ -44,7 +43,7 @@ func renderProcessesWithOffset(snap *statsengine.Snapshot, width, height, offset tbl.SetCursor(cursor) out := tbl.View() + fmt.Sprintf("\nRow %d/%d", cursor+1, len(rows)) - if flags.Get().PidFilter > 0 { + if pidFilter > 0 { out += "\n" + "Note: this tab is most useful with All PIDs." } return out |
