Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
e6f84390
Commit
e6f84390
authored
Sep 27, 2006
by
Browse files
minor fix
git-svn-id:
file:///home/svn/mapi/trunk@912
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
b134e6ba
Changes
1
Show whitespace changes
Inline
Side-by-side
applications/packetloss/packetloss.c
View file @
e6f84390
...
...
@@ -109,12 +109,15 @@ int main(int argc, char *argv[]){
i
=
(
unsigned
int
*
)(
results
[
j
].
res
);
for
(
count
=
*
i
,
i
=
(
unsigned
int
*
)((
char
*
)
i
+
sizeof
(
unsigned
int
));
count
>
0
;
count
--
)
{
if
(
(
pkloss
=
add_bucket
((
struct
flow_data
*
)
i
,
j
)
)
!=
0
)
{
totalpkloss
+=
pkloss
;
}
if
(
j
==
0
)
pkcount0
+=
((
struct
flow_data
*
)
i
)
->
packets_count
;
else
if
(
j
==
1
)
pkcount1
+=
((
struct
flow_data
*
)
i
)
->
packets_count
;
i
=
(
unsigned
int
*
)((
struct
flow_data
*
)
i
+
1
);
}
}
}
if
(
with_ncurses
)
{
...
...
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