aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/prom
diff options
context:
space:
mode:
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;