From: Svetlana Shmidt Date: Mon, 7 Sep 2020 11:19:14 +0000 (+0000) Subject: change names X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a230ab8d2e5859e311ca1ba2a571e40677342f13;p=thirdparty%2Fcollectd.git change names --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index 79ec6d2f5..ae6dab51e 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -488,7 +488,7 @@ int uc_get_percentile_by_name(const char *name, gauge_t *ret_values, name); status = -1; } else { - if (ce->values_distribution == NULL && + if (ce->distribution_increase == NULL && ce->values_raw.distribution != NULL) { /* check if the cache entry is not the distribution */ pthread_mutex_unlock(&cache_lock); @@ -497,7 +497,7 @@ int uc_get_percentile_by_name(const char *name, gauge_t *ret_values, return -1; } - *ret_values = distribution_percentile(ce->values_distribution, percent); + *ret_values = distribution_percentile(ce->distribution_increase, percent); } } else { DEBUG("utils_cache: uc_get_percentile_by_name: No such value: %s", name); @@ -556,7 +556,7 @@ int uc_get_rate_by_name(const char *name, gauge_t *ret_values) { status = -1; } else { - if (ce->values_distribution == NULL && + if (ce->distribution_increase == NULL && ce->values_raw.distribution != NULL) { /* check if the cache entry is not the distribution */ *ret_values = ce->values_gauge;