Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
04b19bc5
Commit
04b19bc5
authored
Aug 28, 2015
by
Jonathan Jenkins
Browse files
typo in next credit time in router (thanks Nikhil)
parent
9c9edb04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/dragonfly.c
View file @
04b19bc5
...
...
@@ -585,7 +585,7 @@ void router_credit_send(router_state * s, tw_bf * bf, terminal_message * msg, tw
assert
(
sender_radix
<
s
->
params
->
radix
);
msg
->
saved_
credit
_time
=
s
->
next_credit_available_time
[
sender_radix
];
msg
->
saved_
available
_time
=
s
->
next_credit_available_time
[
sender_radix
];
s
->
next_credit_available_time
[
sender_radix
]
=
maxd
(
tw_now
(
lp
),
s
->
next_credit_available_time
[
sender_radix
]);
ts
=
credit_delay
+
0
.
1
+
tw_rand_exponential
(
lp
->
rng
,
(
double
)
credit_delay
/
1000
);
...
...
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