1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
David Disseldorp 2018-03-05 11:55:00 +01:00 committed by Andreas Schneider
parent db4d72d21c
commit b4aa16b9ed

View File

@ -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;