aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/prom
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-01 15:51:18 +0100
committerDamjan Marion <dmarion@me.com>2022-03-09 13:51:31 +0000
commit8973b07eecbbfe23a5267975f8052a5c6339c756 (patch)
treefe4d3507ff24c18743d3241cd9ab049ee2add062 /src/plugins/prom
parent317cace6185ae134d78a38e1a20249baf751035e (diff)
stats: refactor
Type: refactor Change-Id: Ifd533a095d979dc55bfbe5fac7e0b7510a4d900c Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/prom')
-rw-r--r--src/plugins/prom/prom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/prom/prom.c b/src/plugins/prom/prom.c
index 3fb3704a9a0..0b03a7adb0b 100644
--- a/src/plugins/prom/prom.c
+++ b/src/plugins/prom/prom.c
@@ -17,7 +17,7 @@
#include <prom/prom.h>
#include <vpp-api/client/stat_client.h>
-#include <vpp/stats/stat_segment.h>
+#include <vlib/stats/stats.h>
#include <ctype.h>
static prom_main_t prom_main;
@@ -388,7 +388,7 @@ static void
prom_stat_segment_client_init (void)
{
stat_client_main_t *scm = &stat_client_main;
- stat_segment_main_t *sm = &stat_segment_main;
+ vlib_stats_segment_t *sm = vlib_stats_get_segment ();
uword size;
size = sm->memory_size ? sm->memory_size : STAT_SEGMENT_DEFAULT_SIZE;