Skip to content
Snippets Groups Projects
Commit e5f02e15 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix a bug in Cluster.fixNodes

We need to lookup the moving accumulator, of course.
parent b8b9a53c
No related branches found
No related tags found
No related merge requests found
......@@ -598,8 +598,8 @@ fixNodes nl il =
assocEqual = (\ (i, _) (j, _) -> i == j)
pdx = Instance.pnode inst
sdx = Instance.snode inst
pold = fromJust $ lookup pdx nl
sold = fromJust $ lookup sdx nl
pold = fromJust $ lookup pdx accu
sold = fromJust $ lookup sdx accu
pnew = Node.setPri pold idx
snew = Node.setSec sold idx
ac1 = deleteBy assocEqual (pdx, pold) accu
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment