Skip to content

Commit

Permalink
Prevent IllegalArgumentException (#421)
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Bonzo <[email protected]>
(cherry picked from commit 5bb2c73)
  • Loading branch information
jbonzohln authored and ndkoval committed Jan 27, 2025
1 parent 57189c8 commit 37cc0a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ private class TraceNodePrefixFactory(nThreads: Int) {
val arrowDepth = arrowDepth
return PrefixProvider {
val extraPrefix = if (arrowDepth == 1) 0 else extraPrefixLength(iThread)
TRACE_INDENTATION.repeat(max(0, arrowDepth - 2 + extraPrefix)) + "| " + TRACE_INDENTATION.repeat(callDepth - arrowDepth + 1)
TRACE_INDENTATION.repeat(max(0, arrowDepth - 2 + extraPrefix)) + "| " + TRACE_INDENTATION.repeat(max(0, callDepth - arrowDepth + 1))
}
}
return PrefixProvider { extraPrefixIfNeeded(iThread) + TRACE_INDENTATION.repeat(callDepth) }
Expand Down

0 comments on commit 37cc0a8

Please sign in to comment.