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
e76c7e69
Commit
e76c7e69
authored
Jan 02, 2015
by
Konstantin Khlebnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ioping: print io run-time instead of real-time
Signed-off-by:
Konstantin Khlebnikov
<
koct9i@gmail.com
>
parent
d3677011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
ioping.c
ioping.c
+2
-5
No files found.
ioping.c
View file @
e76c7e69
...
...
@@ -914,7 +914,7 @@ int main (int argc, char **argv)
int
ret
,
flags
;
int
part_request
;
long
long
this_time
,
time_total
;
long
long
this_time
;
double
part_min
,
part_max
,
time_min
,
time_max
;
double
time_sum
,
time_sum2
,
time_mdev
,
time_avg
;
double
part_sum
,
part_sum2
,
part_mdev
,
part_avg
;
...
...
@@ -1076,7 +1076,6 @@ skip_preparation:
part_sum2
=
time_sum2
=
0
;
time_now
=
now
();
time_total
=
time_now
;
period_deadline
=
time_now
+
period_time
;
while
(
!
exiting
)
{
...
...
@@ -1171,8 +1170,6 @@ skip_preparation:
nanosleep
(
&
interval_ts
,
NULL
);
}
time_total
=
now
()
-
time_total
;
time_sum
+=
part_sum
;
time_sum2
+=
part_sum2
;
if
(
part_min
<
time_min
)
...
...
@@ -1197,7 +1194,7 @@ skip_preparation:
printf
(
") ioping statistics ---
\n
"
);
print_int
(
request
);
printf
(
" requests completed in "
);
print_time
(
time_
total
);
print_time
(
time_
sum
);
printf
(
", "
);
print_int
(
1000000
.
*
request
/
time_sum
);
printf
(
" iops, "
);
...
...
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