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:
parent
fd2c92f442
commit
f58212eb96
|
@ -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() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue