]> granicus.if.org Git - sysstat/commitdiff
PCP: A_NET_SOFT: Fix name for flow_limit metric
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 26 Mar 2022 14:36:31 +0000 (15:36 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 26 Mar 2022 14:36:31 +0000 (15:36 +0100)
Metric name was flow_limit_count in pcp_def_metrics.c but used as
flow_limit in pcp_stats.c
This name mismatch resulted in no value being displayed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pcp_def_metrics.c

index 906cb1c2592fc8f769ac6e2de83d6c7c0bc91019..0ebbb4783998b9c4bd3337cbf7cd629704bb9da6 100644 (file)
@@ -161,7 +161,7 @@ void pcp_def_cpu_metrics(struct activity *a)
                                             pmiID(60, 57, 4), PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_COUNTER,
                                             pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
 
-                               pmiAddMetric("network.softnet.flow_limit_count",
+                               pmiAddMetric("network.softnet.flow_limit",
                                             pmiID(60, 57, 5), PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_COUNTER,
                                             pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
                        }
@@ -253,7 +253,7 @@ void pcp_def_cpu_metrics(struct activity *a)
                                                     pmiID(60, 57, 10), PM_TYPE_U64, indom, PM_SEM_COUNTER,
                                                     pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
 
-                                       pmiAddMetric("network.softnet.percpu.flow_limit_count",
+                                       pmiAddMetric("network.softnet.percpu.flow_limit",
                                                     pmiID(60, 57, 11), PM_TYPE_U64, indom, PM_SEM_COUNTER,
                                                     pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
                                }