summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/syscalls.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/dashboard/syscalls.go')
-rw-r--r--internal/tui/dashboard/syscalls.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/tui/dashboard/syscalls.go b/internal/tui/dashboard/syscalls.go
index f25781e..e40c2e7 100644
--- a/internal/tui/dashboard/syscalls.go
+++ b/internal/tui/dashboard/syscalls.go
@@ -45,8 +45,9 @@ func renderSyscallsWithOffset(snap *statsengine.Snapshot, width, height, offset
)
tbl.SetHeight(syscallTableHeight(height))
tbl.SetWidth(tableWidth(width))
- tbl.SetCursor(clampOffset(offset, len(rows)))
- return tbl.View()
+ cursor := clampOffset(offset, len(rows))
+ tbl.SetCursor(cursor)
+ return tbl.View() + fmt.Sprintf("\nRow %d/%d", cursor+1, len(rows))
}
func syscallRows(syscalls []statsengine.SyscallSnapshot) []table.Row {