mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
3e432e1912
commit
27a35ed47c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue