git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db4d72d
)
ctdb/pmda: fix num_recoveries metric store
author
David Disseldorp
<ddiss@samba.org>
Mon, 5 Mar 2018 10:55:00 +0000
(11:55 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 5 Mar 2018 15:01:17 +0000
(16:01 +0100)
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>
ctdb/utils/pmda/pmda_ctdb.c
patch
|
blob
|
history
diff --git
a/ctdb/utils/pmda/pmda_ctdb.c
b/ctdb/utils/pmda/pmda_ctdb.c
index 45ec5f19821df33e9a658a7b80adcc15b4e878c1..4f7933de9c5616c464bf81d2620e8f9616b05e8d 100644
(file)
--- 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;