From: Sebastien GODARD Date: Sun, 13 Feb 2022 07:47:38 +0000 (+0100) Subject: PCP: A_NET_SOFT: Fix flow_limit_count metric's unit X-Git-Tag: v12.5.6~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c7206cd5410a1b7a6df0ee5040543025dff18be;p=sysstat PCP: A_NET_SOFT: Fix flow_limit_count metric's unit Unit for flow_limit_count metric is that of a counter. Problem exists only for CPU "all". Unit is correct for per-CPU metric. Signed-off-by: Sebastien GODARD --- diff --git a/pcp_def_metrics.c b/pcp_def_metrics.c index 2e1eedb..d386d4f 100644 --- a/pcp_def_metrics.c +++ b/pcp_def_metrics.c @@ -163,7 +163,7 @@ void pcp_def_cpu_metrics(struct activity *a) pmiAddMetric("network.softnet.flow_limit_count", pmiID(60, 57, 5), PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_COUNTER, - pmiUnits(0, -1, 1, 0, PM_TIME_SEC, PM_COUNT_ONE)); + pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE)); } } else {