diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 10:35:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 10:35:13 +0200 |
| commit | a403ca152b6268eacf2804c2d857ead16af37ef3 (patch) | |
| tree | 6df1ebaa0e2a68f2dfc6c17b9987ae8fbff3129c /internal/tui/dashboard/syscalls.go | |
| parent | 791c7aa9e573e80e90ba37e07c8791f280e74d9a (diff) | |
tui: address review feedback for dashboard and export
Diffstat (limited to 'internal/tui/dashboard/syscalls.go')
| -rw-r--r-- | internal/tui/dashboard/syscalls.go | 5 |
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 { |
