Follow up to rev 34073: Since "-b files:0" is no longer necessary to

override the default of turning on a multiple file ring buffer, require
a positive integer to be specified for the files value.


svn path=/trunk/; revision=34082
This commit is contained in:
Stephen Fisher 2010-09-08 18:47:14 +00:00
parent 875c97aedf
commit 390927ce12
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ get_ring_arguments(capture_options *capture_opts, const char *arg)
if (strcmp(arg,"files") == 0) {
capture_opts->has_ring_num_files = TRUE;
capture_opts->ring_num_files = get_natural_int(p, "number of ring buffer files");
capture_opts->ring_num_files = get_positive_int(p, "number of ring buffer files");
} else if (strcmp(arg,"filesize") == 0) {
capture_opts->has_autostop_filesize = TRUE;
capture_opts->autostop_filesize = get_positive_int(p, "ring buffer filesize");