From: elene-margalit Date: Sun, 30 Aug 2020 11:07:55 +0000 (+0200) Subject: Formatted code in metric.c. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3545%2Fhead;p=thirdparty%2Fcollectd.git Formatted code in metric.c. --- diff --git a/src/daemon/metric.c b/src/daemon/metric.c index 3d3070bc3..e604655fb 100644 --- a/src/daemon/metric.c +++ b/src/daemon/metric.c @@ -44,17 +44,14 @@ #define VALID_NAME_CHARS VALID_LABEL_CHARS ":" int distribution_count_marshal_text(strbuf_t *buf, distribution_t *dist) { - return strbuf_printf(buf, "%" PRIu64, distribution_total_counter(dist)); } int distribution_sum_marshal_text(strbuf_t *buf, distribution_t *dist) { - return strbuf_printf(buf, GAUGE_FORMAT, distribution_total_sum(dist)); } int distribution_marshal_text(strbuf_t *buf, distribution_t *dist) { - buckets_array_t buckets = get_buckets(dist); int status_buckets_heading = strbuf_printf(buf, "\"buckets:\" {\n"); if (status_buckets_heading != 0) {