summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/processes.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/dashboard/processes.go')
-rw-r--r--internal/tui/dashboard/processes.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/tui/dashboard/processes.go b/internal/tui/dashboard/processes.go
index d229c10..03a38f1 100644
--- a/internal/tui/dashboard/processes.go
+++ b/internal/tui/dashboard/processes.go
@@ -40,9 +40,10 @@ func renderProcessesWithOffset(snap *statsengine.Snapshot, width, height, offset
)
tbl.SetHeight(syscallTableHeight(height))
tbl.SetWidth(tableWidth(width))
- tbl.SetCursor(clampOffset(offset, len(rows)))
+ cursor := clampOffset(offset, len(rows))
+ tbl.SetCursor(cursor)
- out := tbl.View()
+ out := tbl.View() + fmt.Sprintf("\nRow %d/%d", cursor+1, len(rows))
if flags.Get().PidFilter > 0 {
out += "\n" + "Note: this tab is most useful with All PIDs."
}