]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
change names
authorSvetlana Shmidt <sshmidt@google.com>
Mon, 7 Sep 2020 11:19:14 +0000 (11:19 +0000)
committerSvetlana Shmidt <sshmidt@google.com>
Mon, 7 Sep 2020 11:19:14 +0000 (11:19 +0000)
src/daemon/utils_cache.c

index 79ec6d2f56b5aa3745924d703e0bf5922f306546..ae6dab51e8c9b3a58ecdf0d98fed98893d5ff26b 100644 (file)
@@ -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;