Skip to content

Commit

Permalink
fix: get_partition_id return error partition_id
Browse files Browse the repository at this point in the history
  • Loading branch information
suhang committed May 14, 2020
1 parent 956db93 commit 5346745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plato/graph/partition/sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void __init_offset(std::vector<vid_t>* poffset, const DT* degrees, vid_t vertice
for (vid_t v_i = poffset->at(p_i); v_i < vertices; ++v_i) {
amount += (alpha + degrees[v_i]);
if (amount >= expected_amount) {
poffset->at(p_i + 1) = v_i;
poffset->at(p_i + 1) = v_i / PAGESIZE * PAGESIZE;
break;
}
}
Expand Down

0 comments on commit 5346745

Please sign in to comment.