aboutsummaryrefslogtreecommitdiffstats
path: root/capture_stop_conditions.c
diff options
context:
space:
mode:
authorsake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-12 17:23:18 +0000
committersake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>2008-07-12 17:23:18 +0000
commit0ab989bf2eb85b629854d55c6f94c73b56ac01c2 (patch)
treec624404af21a64a460d455aab8b306ce7887886a /capture_stop_conditions.c
parent60cf244b64ff6a1dd4975727ee7cccfa4ab7cc82 (diff)
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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25722 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_stop_conditions.c')
-rw-r--r--capture_stop_conditions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_stop_conditions.c b/capture_stop_conditions.c
index 02a5aa5251..09ac5b7d4a 100644
--- a/capture_stop_conditions.c
+++ b/capture_stop_conditions.c
@@ -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()*/