From af5bad5ed00f0d21617c34f0e4e96eb2fd977a02 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 27 Nov 2015 18:54:58 +0100 Subject: stat: Explicitly support stat_items without unit Add OSMO_STAT_ITEM_NO_UNIT for stat items without an unit. The statsd reporter uses gauges ("g") to report them. Sponsored-by: On-Waves ehf --- include/osmocom/core/stat_item.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom') diff --git a/include/osmocom/core/stat_item.h b/include/osmocom/core/stat_item.h index c1466f8c..b3a3d9c2 100644 --- a/include/osmocom/core/stat_item.h +++ b/include/osmocom/core/stat_item.h @@ -13,6 +13,7 @@ struct osmo_stat_item_desc; #define STAT_ITEM_NOVALUE_ID 0 +#define OSMO_STAT_ITEM_NO_UNIT NULL struct osmo_stat_item_value { int32_t id; -- cgit v1.2.3