Commit 8fe5ae88 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: change reflect change in pstats from portX to wrportX+1

Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent bf543eb7
......@@ -109,7 +109,7 @@ wrsPstatsHCTable_data_fill(unsigned int *n_rows)
for (wrport = 0; wrport < WRS_N_PORTS; wrport++) {
snprintf(pstats_array[wrport].port_name, 10,
"wr%d", wrport);
sprintf(fname, PSTATS_SYSCTL_PATH"port%i", wrport);
sprintf(fname, PSTATS_SYSCTL_PATH"wrport%i", wrport + 1);
f = fopen(fname, "r");
if (!f) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment