Commit feae636c authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: change the name of net interfaces in wrswrsPstatsTable

interfaces renamed from wrX to wriX+1
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 9d9e5b1b
...@@ -108,7 +108,7 @@ wrsPstatsHCTable_data_fill(unsigned int *n_rows) ...@@ -108,7 +108,7 @@ wrsPstatsHCTable_data_fill(unsigned int *n_rows)
/* read pstats for each port */ /* read pstats for each port */
for (wrport = 0; wrport < WRS_N_PORTS; wrport++) { for (wrport = 0; wrport < WRS_N_PORTS; wrport++) {
snprintf(pstats_array[wrport].port_name, 10, snprintf(pstats_array[wrport].port_name, 10,
"wr%d", wrport); "wri%d", wrport + 1);
sprintf(fname, PSTATS_SYSCTL_PATH"wrport%i", wrport + 1); sprintf(fname, PSTATS_SYSCTL_PATH"wrport%i", wrport + 1);
f = fopen(fname, "r"); f = fopen(fname, "r");
if (!f) { 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