From 27a35ed47c6eb70665c6c484dee64fa06649de10 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 4 Oct 2016 17:13:58 +0200 Subject: stats_statsd: use int64_t instead of int for value and delta. The stats infrastructure use int64_t for values and delta. So the statsd reporter get call with int64_t. Change-Id: I33df86de60007a64fa853d6d3af9b609877a8fc6 --- src/stats_statsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/stats_statsd.c b/src/stats_statsd.c index 28134109..3cecec30 100644 --- a/src/stats_statsd.c +++ b/src/stats_statsd.c @@ -39,7 +39,7 @@ static int osmo_stats_reporter_statsd_send_counter(struct osmo_stats_reporter *s int64_t value, int64_t delta); static int osmo_stats_reporter_statsd_send_item(struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, - const struct osmo_stat_item_desc *desc, int value); + const struct osmo_stat_item_desc *desc, int64_t value); struct osmo_stats_reporter *osmo_stats_reporter_create_statsd(const char *name) { @@ -57,7 +57,7 @@ struct osmo_stats_reporter *osmo_stats_reporter_create_statsd(const char *name) } static int osmo_stats_reporter_statsd_send(struct osmo_stats_reporter *srep, - const char *name1, unsigned int index1, const char *name2, int value, + const char *name1, unsigned int index1, const char *name2, int64_t value, const char *unit) { char *buf; @@ -149,7 +149,7 @@ static int osmo_stats_reporter_statsd_send_counter(struct osmo_stats_reporter *s static int osmo_stats_reporter_statsd_send_item(struct osmo_stats_reporter *srep, const struct osmo_stat_item_group *statg, - const struct osmo_stat_item_desc *desc, int value) + const struct osmo_stat_item_desc *desc, int64_t value) { const char *unit = desc->unit; -- cgit v1.2.3