Skip to content

Commit

Permalink
Document --update-interval capture option better in help messages.
Browse files Browse the repository at this point in the history
Wireshark supports it as well, so add it to ui/commandline.c.

Also, note that the number specified is in units of milliseoncds.
  • Loading branch information
guyharris committed Nov 29, 2024
1 parent 413ad57 commit ec09e66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dumpcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ print_usage(FILE *output)
fprintf(output, " -L, --list-data-link-types\n");
fprintf(output, " print list of link-layer types of iface and exit\n");
fprintf(output, " --list-time-stamp-types print list of timestamp types for iface and exit\n");
fprintf(output, " --update-interval interval between updates with new packets (def: %dms)\n", DEFAULT_UPDATE_INTERVAL);
fprintf(output, " --update-interval interval between updates with new packets, in milliseconds (def: %dms)\n", DEFAULT_UPDATE_INTERVAL);
fprintf(output, " -d print generated BPF code for capture filter\n");
fprintf(output, " -k <freq>,[<type>],[<center_freq1>],[<center_freq2>]\n");
fprintf(output, " set channel on wifi interface\n");
Expand Down
2 changes: 1 addition & 1 deletion tshark.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ print_usage(FILE *output)
fprintf(output, " -L, --list-data-link-types\n");
fprintf(output, " print list of link-layer types of iface and exit\n");
fprintf(output, " --list-time-stamp-types print list of timestamp types for iface and exit\n");
fprintf(output, " --update-interval interval between updates with new packets (def: %dms)\n", DEFAULT_UPDATE_INTERVAL);
fprintf(output, " --update-interval interval between updates with new packets, in milliseconds (def: %dms)\n", DEFAULT_UPDATE_INTERVAL);
fprintf(output, "\n");
fprintf(output, "Capture stop conditions:\n");
fprintf(output, " -c <packet count> stop after n packets (def: infinite)\n");
Expand Down
1 change: 1 addition & 0 deletions ui/commandline.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ commandline_print_usage(bool for_help_option) {
fprintf(output, " -L, --list-data-link-types\n");
fprintf(output, " print list of link-layer types of iface and exit\n");
fprintf(output, " --list-time-stamp-types print list of timestamp types for iface and exit\n");
fprintf(output, " --update-interval interval between updates with new packets, in milliseconds (def: %dms)\n", DEFAULT_UPDATE_INTERVAL);
fprintf(output, "\n");
fprintf(output, "Capture display:\n");
fprintf(output, " -k start capturing immediately (def: do nothing)\n");
Expand Down

0 comments on commit ec09e66

Please sign in to comment.