Skip to content

Commit 74c5119

Browse files
committed
[capshow] start at 1
1 parent 5d094de commit 74c5119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void format_setup(struct format* state, unsigned int flags){
8484
}
8585

8686
void format_pkg(FILE* fp, struct format* state, const struct cap_header* cp){
87-
fprintf(fp, "[%4"PRIu64"]:%.8s:%.8s:", state->pktcount++, cp->nic, cp->mampid);
87+
fprintf(fp, "[%4"PRIu64"]:%.8s:%.8s:", ++state->pktcount, cp->nic, cp->mampid);
8888
if ( state->first ){
8989
state->ref = cp->ts;
9090
state->first = 0;

0 commit comments

Comments
 (0)