ce->values_distribution = NULL;
break;
- case DS_TYPE_DISTRIBUTION:
- ce->values_gauge = NAN;
+ case DS_TYPE_DISTRIBUTION:
+ ce->values_gauge = NAN;
ce->values_raw.distribution = distribution_clone(m->value.distribution);
ce->values_distribution = distribution_clone(m->value.distribution);
break;
}
case METRIC_TYPE_DISTRIBUTION: {
- distribution_t *diff = distribution_sub(ce->values_raw.distribution, m->value.distribution);
+ distribution_t *diff =
+ distribution_sub(ce->values_raw.distribution, m->value.distribution);
distribution_destroy(ce->values_distribution);
distribution_destroy(ce->values_raw.distribution);
ce->values_distribution = diff;
return 0;
}
-int uc_get_percentile_by_name(const char *name, gauge_t *ret_values, double percent) {
+int uc_get_percentile_by_name(const char *name, gauge_t *ret_values,
+ double percent) {
cache_entry_t *ce = NULL;
int status = 0;
/* remove missing values from getval */
if (ce->state == STATE_MISSING) {
- DEBUG("utils_cache: uc_get_percentile_by_name: requested metric \"%s\" is in "
+ DEBUG("utils_cache: uc_get_percentile_by_name: requested metric \"%s\" "
+ "is in "
"state \"missing\".",
name);
status = -1;
int uc_get_percentile(metric_t const *m, gauge_t *ret, double percent) {
if (m->family->type != METRIC_TYPE_DISTRIBUTION) {
ERROR("uc_get_percentile: Don't know how to handle data source type %i.",
- m->family->type);
+ m->family->type);
return -1;
}
size_t *ret_values_num);
value_t *uc_get_value_vl(const data_set_t *ds, const value_list_t *vl);
-int uc_get_percentile_by_name(const char *name, gauge_t *ret_value, double percent);
+int uc_get_percentile_by_name(const char *name, gauge_t *ret_value,
+ double percent);
int uc_get_percentile(metric_t const *m, gauge_t *ret_value, double percent);
int uc_get_rate_by_name(const char *name, gauge_t *ret_value);
int uc_get_rate(metric_t const *m, gauge_t *ret_value);