@cryptotaxi247 / netdata-1 / commits / dbab740e5

Fix ib counters (#11994)

Adrien Mahieux committed Jan 18, 2022 at 13:51 UTC dbab740e52964c7f356f7fe6a3b200afcace508f
1 file changed +2 -1
collectors/proc.plugin/sys_class_infiniband.c
+2 -1
@@ -540,7 +540,8 @@ int do_sys_class_infiniband(int update_every, usec_t dt)
540 rrdset_flag_set(port->st_bytes, RRDSET_FLAG_DETAIL);
541 // On this chart, we want to have a KB/s so the dashboard will autoscale it
542 // The reported values are also per-lane, so we must multiply it by the width
543 - FOREACH_COUNTER_BYTES(GEN_RRD_DIM_ADD_CUSTOM, port, 8 * port->width, 1024, RRD_ALGORITHM_INCREMENTAL)
543 + // x4 lanes multiplier as per Documentation/ABI/stable/sysfs-class-infiniband
544 + FOREACH_COUNTER_BYTES(GEN_RRD_DIM_ADD_CUSTOM, port, 4 * 8 * port->width, 1024, RRD_ALGORITHM_INCREMENTAL)
545
546 port->stv_speed = rrdsetvar_custom_chart_variable_create(port->st_bytes, "link_speed");
547 } else