X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fceph.c;h=73140a54a7deb05194bafc8a1e2312dfab80f551;hb=d544398864bc02dfd1623e6d005591b512e2f6c6;hp=62acaf345bf9e5e85daba79ca11013d1a8ca51c4;hpb=db39236c6da4928fe0a740a3d65d61eed7ec7557;p=collectd.git diff --git a/src/ceph.c b/src/ceph.c index 62acaf34..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)) { @@ -396,7 +396,7 @@ static void ceph_daemon_free(struct ceph_daemon *d) { } /* compact_ds_name removed the special characters ":", "_", "-" and "+" from the - * intput string. Characters following these special characters are capitalized. + * input string. Characters following these special characters are capitalized. * Trailing "+" and "-" characters are replaces with the strings "Plus" and * "Minus". */ static int compact_ds_name(char *buffer, size_t buffer_size, char const *src) {