Skip to content

Commit 53d324a

Browse files
committed
epoch: fix per-record peak statistics.
This has no functional impact beyond incorrect statistics on peak records.
1 parent 3b4054c commit 53d324a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ck_epoch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ ck_epoch_dispatch(struct ck_epoch_record *record, unsigned int e, ck_stack_t *de
383383

384384
/* We don't require accuracy around peak calculation. */
385385
if (n_pending > n_peak)
386-
ck_pr_store_uint(&record->n_peak, n_peak);
386+
ck_pr_store_uint(&record->n_peak, n_pending);
387387

388388
if (i > 0) {
389389
ck_pr_add_uint(&record->n_dispatch, i);

0 commit comments

Comments
 (0)