Commit f1827e9c authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: do not override custom interval and deadline by -R

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent 6225d3ff
......@@ -429,6 +429,7 @@ ssize_t (*make_request) (int fd, void *buf, size_t nbytes, off_t offset) = pread
int period_request = 0;
long long period_time = 0;
int custom_interval, custom_deadline;
long long interval = 1000000;
struct timespec interval_ts;
long long deadline = 0;
......@@ -470,8 +471,10 @@ void parse_options(int argc, char **argv)
default_size = 1<<18;
break;
case 'R':
interval = 0;
deadline = 3000000;
if (!custom_interval)
interval = 0;
if (!custom_deadline)
deadline = 3000000;
temp_wsize = 1<<26;
quiet = 1;
break;
......@@ -489,9 +492,11 @@ void parse_options(int argc, char **argv)
break;
case 'i':
interval = parse_time(optarg);
custom_interval = 1;
break;
case 'w':
deadline = parse_time(optarg);
custom_deadline = 1;
break;
case 's':
size = parse_size(optarg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment