Commit be02ad14 authored by Robert Ricci's avatar Robert Ricci

Fix a bug where vnodes that occupy more than one slot were being

under-counted.
parent d866026a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment