Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioping
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ioping
Commits
f1827e9c
Commit
f1827e9c
authored
Sep 05, 2015
by
Konstantin Khlebnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ioping: do not override custom interval and deadline by -R
Signed-off-by:
Konstantin Khlebnikov
<
koct9i@gmail.com
>
parent
6225d3ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ioping.c
ioping.c
+7
-2
No files found.
ioping.c
View file @
f1827e9c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment