From: Aleksei Zakharov Date: Fri, 1 Dec 2017 16:07:04 +0000 (+0300) Subject: ceph plugin: Fix #2572 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=de05fb53fad6bc998f585b704ca0caeadc14a035;p=collectd.git ceph plugin: Fix #2572 Signed-off-by: Florian Forster --- diff --git a/src/ceph.c b/src/ceph.c index 3accbd3f..73140a54 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -280,7 +280,7 @@ static int ceph_cb_number(void *ctx, const char *number_val, * the same type of other "Bytes". Instead of keeping an "average" or * "rate", use the "sum" in the pair and assign that to the derive * value. */ - if (convert_special_metrics && (state->depth >= 2) && + if (convert_special_metrics && (state->depth > 2) && (strcmp("filestore", state->stack[state->depth - 2]) == 0) && (strcmp("journal_wr_bytes", state->stack[state->depth - 1]) == 0) && (strcmp("avgcount", state->key) == 0)) {