STATS: Python binding to access VPP statistics and counters.
[vpp.git] / src / vpp / app / vpp_get_stats.c
index c1f43a7..908e675 100644 (file)
@@ -186,7 +186,7 @@ reconnect:
              break;
 
            case STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED:
-             for (k = 0; k < vec_len (res[i].simple_counter_vec); k++)
+             for (k = 0; k < vec_len (res[i].combined_counter_vec); k++)
                for (j = 0; j < vec_len (res[i].combined_counter_vec[k]); j++)
                  fformat (stdout, "[%d @ %d]: %lld packets, %lld bytes %s\n",
                           j, k, res[i].combined_counter_vec[k][j].packets,