summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vpp/stats/stats.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/stats/stats.md b/src/vpp/stats/stats.md
index 521ab916876..6a62ca6c8ad 100644
--- a/src/vpp/stats/stats.md
+++ b/src/vpp/stats/stats.md
@@ -63,7 +63,7 @@ A new client library can either wrap the C library (libvppapiclient.so) or it ca
```
#!/usr/bin/env python
from vpp_papi.vpp_stats import VPPStats
-stats = VPPStats('/var/run/stats.socks')
+stats = VPPStats('/run/vpp/stats.sock')
dir = stats.ls(['^/if', '/err/ip4-input', '/sys/node/ip4-input'])
counters = stats.dump(dir)
@@ -82,7 +82,7 @@ int main (int argc, char **argv) {
vec_add1(patterns, "^/if");
vec_add1(patterns, "ip4-input");
- int rv = stat_segment_connect("/var/run/stats.sock");
+ int rv = stat_segment_connect(STAT_SEGMENT_SOCKET_FILE);
uint32_t *dir = stat_segment_ls(patterns);
stat_segment_data_t *res = stat_segment_dump(dir);