Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
335beb15
Commit
335beb15
authored
Aug 20, 2018
by
Caitlin Ross
Committed by
Misbah Mubarak
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix RNG reverse bug in model-net.c
parent
d2e5b31d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/networks/model-net/model-net.c
src/networks/model-net/model-net.c
+1
-2
No files found.
src/networks/model-net/model-net.c
View file @
335beb15
...
...
@@ -271,12 +271,12 @@ static model_net_event_return model_net_noop_event(
model_net_event_return
num_rng_calls
=
0
;
tw_stime
poffset
=
mn_in_sequence
?
mn_msg_offset
:
0
.
0
;
tw_stime
delay
=
codes_local_latency
(
sender
);
num_rng_calls
++
;
// rng call is in codes_local_latency
tw_stime
sendTime
=
message_size
*
codes_cn_delay
;
if
(
self_event_size
&&
self_event
!=
NULL
)
{
poffset
+=
delay
;
num_rng_calls
++
;
tw_event
*
e
=
tw_event_new
(
sender
->
gid
,
poffset
+
offset
+
sendTime
,
sender
);
memcpy
(
tw_event_data
(
e
),
self_event
,
self_event_size
);
tw_event_send
(
e
);
...
...
@@ -284,7 +284,6 @@ static model_net_event_return model_net_noop_event(
if
(
remote_event_size
&&
remote_event
!=
NULL
)
{
poffset
+=
delay
;
num_rng_calls
++
;
/* special case - in a "pull" event, the "remote" message is actually
* to self */
tw_event
*
e
=
tw_event_new
(
is_pull
?
sender
->
gid
:
final_dest_lp
,
...
...
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