Fix an off-by-one error which caused capturing with
authorsake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 12 Jul 2008 17:23:18 +0000 (17:23 +0000)
committersake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 12 Jul 2008 17:23:18 +0000 (17:23 +0000)
a duration limit of X seconds per file to actually
save X+1 seconds per file

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25722 f5534014-38df-0310-8fa8-9805f1628bb7

capture_stop_conditions.c

index 02a5aa52516946334083192ca9dd94a197a25ab8..09ac5b7d4ab94810feb1bd0bd64bb1b0682b74cb 100644 (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()*/