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
5ed40e41
Commit
5ed40e41
authored
Dec 03, 2015
by
Misbah Mubarak
Browse files
Safety check on num_nodes
parent
bb71bdc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/network-workloads/model-net-synthetic.c
View file @
5ed40e41
...
...
@@ -384,6 +384,8 @@ int main(
num_nodes
=
num_groups
*
num_routers_per_grp
*
(
num_routers_per_grp
/
2
);
num_nodes_per_grp
=
num_routers_per_grp
*
(
num_routers_per_grp
/
2
);
assert
(
num_nodes
);
if
(
lp_io_dir
[
0
])
{
do_lp_io
=
1
;
...
...
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