We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd5015 commit 8e48ae1Copy full SHA for 8e48ae1
src/disco/stem/fd_stem.c
@@ -549,12 +549,11 @@ STEM_(run1)( ulong in_cnt,
549
/* Select which in to poll next (randomized round robin) */
550
551
if( FD_UNLIKELY( !in_cnt ) ) {
552
- int was_busy = 0;
553
- was_busy |= !!charge_busy_before;
554
- was_busy |= !!charge_busy_after;
555
- metric_regime_ticks[ 0+was_busy ] += housekeeping_ticks;
+ int was_busy = charge_busy_before+charge_busy_after;
+ metric_regime_ticks[0] += housekeeping_ticks;
556
long next = fd_tickcount();
557
- metric_regime_ticks[ 3+was_busy ] += (ulong)(next - now);
+ if( FD_UNLIKELY( was_busy ) ) metric_regime_ticks[3] += (ulong)(next - now);
+ else metric_regime_ticks[6] += (ulong)(next - now);
558
now = next;
559
continue;
560
}
0 commit comments