]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Formatted the code.
authorelene-margalit <elene.margalit@gmail.com>
Sun, 16 Aug 2020 17:30:13 +0000 (19:30 +0200)
committerelene-margalit <elene.margalit@gmail.com>
Sun, 16 Aug 2020 17:30:13 +0000 (19:30 +0200)
src/daemon/metric.h

index 6af52562f995db2c9d863b04da413d03ecbd2852..4f664e942b7bc9c7c92ca319def5cd1aabc4c397 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,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