From 1f94de0ac90ee4d49edab7256cdbc56efb5bf40b Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sun, 24 Mar 2019 15:16:50 +0100 Subject: [PATCH] sadf: PCP: rename metric getatt -> getattr This is the real name of this RPC call. Use it for NFS activity. Signed-off-by: Sebastien GODARD --- pcp_def_metrics.c | 2 +- pcp_stats.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcp_def_metrics.c b/pcp_def_metrics.c index 3d15946..ffa1a9a 100644 --- a/pcp_def_metrics.c +++ b/pcp_def_metrics.c @@ -627,7 +627,7 @@ void pcp_def_net_nfs_metrics(void) PM_IN_NULL, PM_TYPE_FLOAT, PM_INDOM_NULL, PM_SEM_INSTANT, pmiUnits(0, -1, 1, 0, PM_TIME_SEC, PM_COUNT_ONE)); - pmiAddMetric("network.fs.client.getatt", + pmiAddMetric("network.fs.client.getattr", PM_IN_NULL, PM_TYPE_FLOAT, PM_INDOM_NULL, PM_SEM_INSTANT, pmiUnits(0, -1, 1, 0, PM_TIME_SEC, PM_COUNT_ONE)); #endif /* HAVE_PCP */ diff --git a/pcp_stats.c b/pcp_stats.c index 8e263ef..88b6838 100644 --- a/pcp_stats.c +++ b/pcp_stats.c @@ -835,7 +835,7 @@ __print_funct_t pcp_print_net_nfs_stats(struct activity *a, int curr, unsigned l snprintf(buf, sizeof(buf), "%f", S_VALUE(snnp->nfs_getattcnt, snnc->nfs_getattcnt, itv)); - pmiPutValue("network.fs.client.getatt", NULL, buf); + pmiPutValue("network.fs.client.getattr", NULL, buf); #endif /* HAVE_PCP */ } -- 2.40.0