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:
Sake Blok 2008-07-12 17:23:18 +00:00
parent 445e2212b7
commit 58b30f1567
1 changed files with 1 additions and 1 deletions

View File

@ -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()*/