routing: trace capacity in probability log

This commit is contained in:
bitromortac
2023-02-18 09:46:21 +01:00
parent 75a9dc9103
commit 26d1f427df

View File

@ -649,9 +649,9 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig,
log.Trace(newLogClosure(func() string { log.Trace(newLogClosure(func() string {
return fmt.Sprintf("path finding probability: fromnode=%v,"+ return fmt.Sprintf("path finding probability: fromnode=%v,"+
" tonode=%v, amt=%v, probability=%v", " tonode=%v, amt=%v, cap=%v, probability=%v",
fromVertex, toNodeDist.node, amountToSend, fromVertex, toNodeDist.node, amountToSend,
edgeProbability) edge.capacity, edgeProbability)
})) }))
// If the probability is zero, there is no point in trying. // If the probability is zero, there is no point in trying.