Changeset - r28178:d924f9b08845
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 12 months ago 2023-11-25 20:57:20
j.g.rennison@gmail.com
Fix #11493: Incorrect flow values in LinkGraphJob::EdgeAnnotation (#11494)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/linkgraph/linkgraphjob.cpp
Show inline comments
 
@@ -221,7 +221,7 @@ void Path::Fork(Path *base, uint cap, in
 
uint Path::AddFlow(uint new_flow, LinkGraphJob &job, uint max_saturation)
 
{
 
	if (this->parent != nullptr) {
 
		LinkGraphJob::EdgeAnnotation edge = job[this->parent->node][this->node];
 
		LinkGraphJob::EdgeAnnotation &edge = job[this->parent->node][this->node];
 
		if (max_saturation != UINT_MAX) {
 
			uint usable_cap = edge.base.capacity * max_saturation / 100;
 
			if (usable_cap > edge.Flow()) {
0 comments (0 inline, 0 general)