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
Elsa Gonsiorowski
codes
Commits
345b19c7
Commit
345b19c7
authored
Nov 18, 2015
by
Jonathan Jenkins
Browse files
fix mod logic in sched to allow 0-size msg
parent
4b42678e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/model-net-sched-impl.c
View file @
345b19c7
...
...
@@ -331,7 +331,8 @@ void fcfs_next_rc(
q
->
req
=
rc
->
req
;
q
->
sched_params
=
rc
->
sched_params
;
q
->
rem
=
q
->
req
.
msg_size
%
q
->
req
.
packet_size
;
if
(
q
->
rem
==
0
){
// processed exactly a packet's worth of data
// processed exactly a packet's worth of data
if
(
q
->
rem
==
0
&&
q
->
req
.
msg_size
!=
0
){
q
->
rem
=
q
->
req
.
packet_size
;
}
const
void
*
e_dat
=
rc_event_save
;
...
...
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