forked from osmocom/wireshark
Fix an off-by-one error which caused capturing with
a duration limit of X seconds per file to actually save X+1 seconds per file svn path=/trunk/; revision=25722
This commit is contained in:
parent
445e2212b7
commit
58b30f1567
|
@ -120,7 +120,7 @@ static gboolean _cnd_eval_timeout(condition* cnd, va_list ap _U_){
|
|||
/* check timeout here */
|
||||
if(data->timeout_s == 0) return FALSE; /* 0 == infinite */
|
||||
elapsed_time = (gint32) (time(NULL) - data->start_time);
|
||||
if(elapsed_time > data->timeout_s) return TRUE;
|
||||
if(elapsed_time >= data->timeout_s) return TRUE;
|
||||
return FALSE;
|
||||
} /* END _cnd_eval_timeout()*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue