Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
be02ad14
Commit
be02ad14
authored
Jun 03, 2004
by
Robert Ricci
Browse files
Fix a bug where vnodes that occupy more than one slot were being
under-counted.
parent
d866026a
Changes
1
Hide whitespace changes
Inline
Side-by-side
assign/parse_top.cc
View file @
be02ad14
...
...
@@ -115,9 +115,9 @@ int parse_top(tb_vgraph &VG, istream& i)
v
->
type
=
type
;
v
->
vclass
=
NULL
;
if
(
vtypes
.
find
(
v
->
type
)
==
vtypes
.
end
())
{
vtypes
[
v
->
type
]
=
1
;
vtypes
[
v
->
type
]
=
typecount
;
}
else
{
vtypes
[
v
->
type
]
++
;
vtypes
[
v
->
type
]
+=
typecount
;
}
}
v
->
typecount
=
typecount
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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