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