Fix incorrect application of xTracksReservedMin in Katana.

* Bug: In KatanaEngine::annotateGlobalGraph(), the minimum track reservation
    was not applied correctly. Instead of adding the *difference* between
    the minimum and the current reservation, the minimum was simply added.
    Leading to too high reservation. And loss of control about what we
    were doing on the edges capacities...
      Really stupid.
This commit is contained in:
Jean-Paul Chaput 2021-10-14 23:50:14 +02:00
parent fd2c92f442
commit f58212eb96
1 changed files with 2 additions and 2 deletions

View File

@ -583,12 +583,12 @@ namespace Katana {
for ( Edge* edge : gcell->getEdges( Flags::NorthSide) ) {
if (edge->getReservedCapacity() < vReservedMin) {
edge->reserveCapacity( vReservedMin );
edge->reserveCapacity( vReservedMin - edge->getReservedCapacity() );
}
}
for ( Edge* edge : gcell->getEdges( Flags::EastSide) ) {
if (edge->getReservedCapacity() < hReservedMin)
edge->reserveCapacity( hReservedMin );
edge->reserveCapacity( hReservedMin - edge->getReservedCapacity() );
}
}
}