Skip to content

Commit ee6f778

Browse files
committed
Correctly update packets' count
1 parent ee57b47 commit ee6f778

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tui/models/packets_table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func (m *packetsTableModel) addRows(packets []sockets.NetworkPacket) {
121121
newCache := make([]table.Row, 0, m.maxRows)
122122
if lp > m.maxRows {
123123
packets = packets[lp-m.maxRows:]
124+
m.counter += uint64(lp - m.maxRows)
124125
} else {
125126
oldToKeep := m.maxRows - lp
126127
newCache = append(newCache, m.cachedRows[lc-oldToKeep:]...)

0 commit comments

Comments
 (0)