Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7b43420a
Commit
7b43420a
authored
Oct 10, 2006
by
David Johnson
Browse files
middleman block num
parent
ae734026
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/supafly/sfmiddleman.c
View file @
7b43420a
...
...
@@ -107,6 +107,7 @@ int main(int argc,char **argv) {
fd_set
rfds
;
fd_set
static_rfds
;
int
current_send_rc
;
int
block_count
=
0
;
/* grab some quick args */
parse_args
(
argc
,
argv
);
...
...
@@ -356,6 +357,8 @@ int main(int argc,char **argv) {
if
(
current_send_rc
==
block_size
)
{
current_send_rc
=
0
;
++
block_count
;
/* end of block, do the encryption op and note times... */
if
(
debug
>
1
)
{
fprintf
(
stderr
,
...
...
@@ -392,8 +395,9 @@ int main(int argc,char **argv) {
t3
.
tv_usec
+=
1000000
;
}
fprintf
(
stdout
,
"BLOCKTIME(%s): %d at %.6f
\n
"
,
"BLOCKTIME(%s): %d
%d
at %.6f
\n
"
,
(
only_encrypt
)
?
"e"
:
"de"
,
block_count
,
t3
.
tv_sec
*
1000
+
t3
.
tv_usec
,
t2
.
tv_sec
+
t2
.
tv_usec
/
1000000
.
0
f
);
fflush
(
stdout
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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