]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Revert "Formatted the code."
authorElene Margalitadze <68648605+elene-margalit@users.noreply.github.com>
Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)
This reverts commit 6214e862a84bf9c6613b009bdc744fa040e6c872.

src/daemon/metric.h

index 4f664e942b7bc9c7c92ca319def5cd1aabc4c397..6af52562f995db2c9d863b04da413d03ecbd2852 100644 (file)
 #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,8 +128,7 @@ 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. */
@@ -179,12 +178,10 @@ 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