Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
b4eba540
Commit
b4eba540
authored
Nov 07, 2014
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'simplewan_latency'
parents
d0c91d22
c903aadb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
simplewan.c
src/models/networks/model-net/simplewan.c
+2
-2
No files found.
src/models/networks/model-net/simplewan.c
View file @
b4eba540
...
...
@@ -695,7 +695,7 @@ static void handle_msg_start_event(
}
/* calculate send time stamp */
send_queue_time
=
startup
;
/* net msg startup cost
*/
send_queue_time
=
0
.
0
;
/* net msg startup cost (negligible for this model)
*/
/* bump up time if the NIC send queue isn't idle right now */
if
(
ns
->
send_next_idle
[
dest_rel_id
]
>
tw_now
(
lp
))
send_queue_time
+=
ns
->
send_next_idle
[
dest_rel_id
]
-
tw_now
(
lp
);
...
...
@@ -754,7 +754,7 @@ static void handle_msg_start_event(
void
*
m_data
;
//e_new = tw_event_new(dest_id, send_queue_time, lp);
//m_new = tw_event_data(e_new);
e_new
=
model_net_method_event_new
(
dest_id
,
send_queue_time
,
lp
,
e_new
=
model_net_method_event_new
(
dest_id
,
send_queue_time
+
startup
,
lp
,
SIMPLEWAN
,
(
void
**
)
&
m_new
,
&
m_data
);
/* copy entire previous message over, including payload from user of
...
...
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