fix a bug (reported by Greg Morris) caused by code cleanup (blame it on me):

as the total packet count wasn't updated, the capture_info dialog wasn't updated accordingly

svn path=/trunk/; revision=13021
This commit is contained in:
Ulf Lamping 2005-01-13 20:19:49 +00:00
parent 5817bb4c03
commit cb9be2d997
1 changed files with 2 additions and 1 deletions

View File

@ -1390,7 +1390,8 @@ capture_loop_packet_cb(guchar *user, const struct pcap_pkthdr *phdr,
int err;
/* if the user told us to stop after x packets, do we have enough? */
if ((ld->packets_max > 0) && (++ld->counts.total >= ld->packets_max))
ld->counts.total++;
if ((ld->packets_max > 0) && (ld->counts.total >= ld->packets_max))
{
ld->go = FALSE;
}