Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
d9e32252
Commit
d9e32252
authored
Oct 15, 2013
by
Philip Carns
Browse files
updates for better model agreement
parent
df83061f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/loggp.c
View file @
d9e32252
...
...
@@ -329,7 +329,7 @@ static void handle_msg_ready_event(
param
=
find_params
(
m
->
net_msg_size_bytes
);
if
(
m
->
net_msg_size_bytes
<
=
SMALL_MSG_LIMIT
)
if
(
m
->
net_msg_size_bytes
<
SMALL_MSG_LIMIT
)
{
max
=
param
->
g
;
if
(
max
<
param
->
o_r
)
...
...
@@ -431,7 +431,7 @@ static void handle_msg_start_event(
total_event_size
=
loggp_get_msg_sz
()
+
m
->
event_size_bytes
+
m
->
local_event_size_bytes
;
if
(
m
->
net_msg_size_bytes
<
=
SMALL_MSG_LIMIT
)
if
(
m
->
net_msg_size_bytes
<
SMALL_MSG_LIMIT
)
{
max
=
param
->
g
;
if
(
max
<
param
->
o_s
)
...
...
@@ -640,14 +640,18 @@ static struct param_table_entry* find_params(int msg_size)
for
(
i
=
0
;
i
<
param_table_size
;
i
++
)
{
if
(
param_table
[
i
].
size
>
msg_size
)
if
(
param_table
[
i
].
size
>
=
msg_size
)
{
if
(
i
>
0
)
i
--
;
break
;
}
}
/* TODO: THIS IS A HACK */
/* need to understand why the o_s and o_r values don't work as
* expected...
*/
param_table
[
i
].
o_s
=
0
;
param_table
[
i
].
o_r
=
0
;
return
(
&
param_table
[
i
]);
}
...
...
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