Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 8a8dccb

Browse files
author
Michal Hruby
authored
Update metric.c
1 parent b467a23 commit 8a8dccb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/metric.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,9 @@ histogram__sample(struct brubeck_metric *metric, brubeck_sample_cb sample, void
182182
sample(key, hsample.count, opaque);
183183
}
184184

185-
if (opaque != NULL){
185+
WITH_SUFFIX(".count_ps") {
186186
struct brubeck_backend *backend = opaque;
187-
WITH_SUFFIX(".count_ps") {
188-
sample(key, hsample.count / (double)backend->sample_freq, opaque);
189-
}
187+
sample(key, hsample.count / (double)backend->sample_freq, opaque);
190188
}
191189

192190
/* if there have been no metrics during this sampling period,

0 commit comments

Comments
 (0)