Skip to content

Commit

Permalink
report non-zero channelsToFlush
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg committed Nov 27, 2024
1 parent fa91c11 commit ff0c941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/netty/ActorChannelConnector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ final private class ActorChannelConnector(
val qSize = flushQ.estimateSize()
val maxDelayFactor = config.interval.get().toDouble / config.maxDelay.get().atLeast(1)
var channelsToFlush = config.step.get().atLeast((qSize * maxDelayFactor).toInt)
monitor.channelsToFlush.record(channelsToFlush)

while channelsToFlush > 0 do
flushQ.poll() match
Expand All @@ -82,7 +83,6 @@ final private class ActorChannelConnector(
channelsToFlush = 0

monitor.qSizeEstimate.record(qSize)
monitor.channelsToFlush.record(channelsToFlush)
monitor.loopRuntimeMicroseconds.record((Deadline.now - entered).toMicros)

entered + {
Expand Down

0 comments on commit ff0c941

Please sign in to comment.