summaryrefslogtreecommitdiff
path: root/ctdb/utils
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2018-03-05 11:55:00 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-03-05 16:01:17 +0100
commitb4aa16b9edbd9fee9ec2e9cc9c925fbeb7281921 (patch)
tree9e5fecc57f51ccabd46d7ff56dc3070efab1a999 /ctdb/utils
parentdb4d72d21c263dc50851dc9b36ee0de61ee5fef2 (diff)
downloadsamba-b4aa16b9edbd9fee9ec2e9cc9c925fbeb7281921.tar.gz
ctdb/pmda: fix num_recoveries metric store
The num_recoveries metric is declared as PM_TYPE_U32, so should be used accordingly. Suggested-by: Nathan Scott <nathans@redhat.com> Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'ctdb/utils')
-rw-r--r--ctdb/utils/pmda/pmda_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/utils/pmda/pmda_ctdb.c b/ctdb/utils/pmda/pmda_ctdb.c
index 45ec5f19821..4f7933de9c5 100644
--- a/ctdb/utils/pmda/pmda_ctdb.c
+++ b/ctdb/utils/pmda/pmda_ctdb.c
@@ -302,7 +302,7 @@ fill_base(unsigned int item, pmAtomValue *atom)
atom->d = stats->childwrite_latency.max;
break;
case 22:
- atom->d = stats->num_recoveries;
+ atom->ul = stats->num_recoveries;
break;
default:
return PM_ERR_PMID;