Skip to content
GitLab
Menu
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
58c871e1
Commit
58c871e1
authored
Jul 08, 2012
by
Mike Hibler
Browse files
Fix some bitrot in the tracing functions.
parent
caeae34f
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/os/frisbee.redux/server.c
View file @
58c871e1
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-201
1
University of Utah and the Flux Group.
* Copyright (c) 2000-201
2
University of Utah and the Flux Group.
* All rights reserved.
*/
...
...
@@ -427,7 +427,8 @@ ClientJoin(Packet_t *p, int version)
activeclients
++
;
#endif
EVENT
(
1
,
EV_JOINREP
,
ipaddr
,
FileInfo
.
blocks
,
0
,
0
,
0
);
EVENT
(
1
,
EV_JOINREP
,
ipaddr
,
CHUNKSIZE
,
BLOCKSIZE
,
(
FileInfo
.
filesize
>>
32
),
FileInfo
.
filesize
);
/*
* Log after we send reply so that we get the packet off as
...
...
clientside/os/frisbee.redux/trace.c
View file @
58c871e1
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2002-201
1
University of Utah and the Flux Group.
* Copyright (c) 2002-201
2
University of Utah and the Flux Group.
* All rights reserved.
*/
...
...
@@ -179,9 +179,9 @@ TraceDump(int serverrel, int level)
stamp
.
tv_sec
=
ptr
->
args
[
0
];
stamp
.
tv_usec
=
ptr
->
args
[
1
];
timersub
(
&
ptr
->
tstamp
,
&
stamp
,
&
stamp
);
fprintf
(
fd
,
"overrun by %ld.%0
3
ld "
fprintf
(
fd
,
"overrun by %ld.%0
6
ld "
"after %u[%u]
\n
"
,
stamp
.
tv_sec
,
stamp
.
tv_usec
/
1000
,
stamp
.
tv_sec
,
stamp
.
tv_usec
,
ptr
->
args
[
2
],
ptr
->
args
[
3
]);
break
;
case
EV_LONGBURST
:
...
...
@@ -465,10 +465,10 @@ TraceDump(int serverrel, int level)
stamp
.
tv_sec
=
ptr
->
args
[
0
];
stamp
.
tv_usec
=
ptr
->
args
[
1
];
timersub
(
&
ptr
->
tstamp
,
&
stamp
,
&
stamp
);
fprintf
(
fd
,
"%s: got block, wait=%03ld.%0
3
ld"
", %u good blocks recv (%u
total)
\n
"
,
fprintf
(
fd
,
"%s: got block, wait=%03ld.%0
6
ld"
", %u good blocks recv (%u total)
\n
"
,
inet_ntoa
(
ptr
->
srcip
),
stamp
.
tv_sec
,
stamp
.
tv_usec
/
1000
,
stamp
.
tv_sec
,
stamp
.
tv_usec
,
ptr
->
args
[
2
],
ptr
->
args
[
3
]);
break
;
case
EV_CLIRTIMO
:
...
...
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