summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-10-04 17:13:58 +0200
committerlynxis lazus <lynxis@fe80.eu>2016-10-18 09:52:13 +0000
commit27a35ed47c6eb70665c6c484dee64fa06649de10 (patch)
tree1f927f2bd7750281a91c7fd5f9c7df34373077e9 /src
parent3e432e1912c0e531c55e1c6c75c758b0fde9887e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/stats_statsd.c6
1 files changed, 3 insertions, 3 deletions
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;