X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fceph.c;h=73140a54a7deb05194bafc8a1e2312dfab80f551;hp=3accbd3f80d20a8d9b3c5c8e28af961c2d613aa9;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=65bdbbfb9c6b287de835e5aa81faee8cd864c1e9 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)) {