From: elene-margalit Date: Sun, 16 Aug 2020 17:30:13 +0000 (+0200) Subject: Formatted the code. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=012beb6bd035d562c55a568957f583fd42d6bb5d;p=thirdparty%2Fcollectd.git Formatted the code. --- diff --git a/src/daemon/metric.h b/src/daemon/metric.h index 6af52562f..4f664e942 100644 --- a/src/daemon/metric.h +++ b/src/daemon/metric.h @@ -28,10 +28,10 @@ #ifndef METRIC_H #define METRIC_H 1 +#include "distribution.h" #include "utils/metadata/meta_data.h" #include "utils/strbuf/strbuf.h" #include "utils_time.h" -#include "distribution.h" #define VALUE_TYPE_GAUGE 1 #define VALUE_TYPE_DERIVE 2 @@ -128,7 +128,8 @@ int metric_label_set(metric_t *m, char const *name, char const *value); char const *metric_label_get(metric_t const *m, char const *name); /* metric_reset frees all labels and meta data stored in the metric and resets - * the metric to zero. If the metric is a distribution metric, the function frees the according distribution.*/ + * the metric to zero. If the metric is a distribution metric, the function + * frees the according distribution.*/ int metric_reset(metric_t *m); /* metric_list_t is an unordered list of metrics. */ @@ -178,10 +179,12 @@ void metric_family_free(metric_family_t *fam); * metric_family_free(). */ metric_family_t *metric_family_clone(metric_family_t const *fam); -/*The static function metric_list_clone creates a clone of the argument metric_list_t src. For each metric_t element - *in the src list it checks if its value is a distribution metric and if yes, calls the distribution_clone function - *for the value and saves the pointer to the returned distribution_t clone into the metric_list_t dest. If - *the value is not a distribution_t, it simply sets the value of the element in the destination list to the value - *of the element in the source list. */ +/*The static function metric_list_clone creates a clone of the argument + *metric_list_t src. For each metric_t element in the src list it checks if its + *value is a distribution metric and if yes, calls the distribution_clone + *function for the value and saves the pointer to the returned distribution_t + *clone into the metric_list_t dest. If the value is not a distribution_t, it + *simply sets the value of the element in the destination list to the value of + *the element in the source list. */ #endif