]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Replaced function calls to deleted functions.
authorelene-margalit <elene.margalit@gmail.com>
Wed, 9 Sep 2020 22:25:19 +0000 (00:25 +0200)
committerelene-margalit <elene.margalit@gmail.com>
Wed, 9 Sep 2020 22:25:19 +0000 (00:25 +0200)
src/utils/format_json/format_json.c

index 8a1092ca4d1f19f54d6cfca20a3e6b0aa30ce368..86b919ebc1411028c70338838eab9a48e7c56898 100644 (file)
@@ -136,13 +136,13 @@ static int format_metric_distribution(strbuf_t buf, yajl_gen g,
   }
   CHECK(yajl_gen_map_close(g)); /*End Buckets*/
 
-  distribution_count_marshal_text(&buf, m->value.distribution);
+  strbuf_printf(&buf, "%" PRIu64, distribution_total_counter(m->value.distribution));
 
   CHECK(json_add_string(g, "count"));
   CHECK(json_add_string(g, buf.ptr));
   strbuf_reset(&buf);
 
-  distribution_sum_marshal_text(&buf, m->value.distribution);
+  strbuf_printf(&buf, GAUGE_FORMAT, distribution_total_sum(m->value.distribution));
 
   CHECK(json_add_string(g, "sum"));
   CHECK(json_add_string(g, buf.ptr));
@@ -478,4 +478,4 @@ int format_json_notification(char *buffer, size_t buffer_size, /* {{{ */
   yajl_gen_clear(g);
   yajl_gen_free(g);
   return 0;
-} /* }}} format_json_notification */
\ No newline at end of file
+} /* }}} format_json_notification */