]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
src/daemon/utils_cache.h: Unify comment style.
authorFlorian Forster <octo@collectd.org>
Wed, 31 Jan 2024 12:45:58 +0000 (13:45 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 31 Jan 2024 12:45:58 +0000 (13:45 +0100)
src/daemon/utils_cache.h

index 5756e641347eded1b2475545c23a31ef9e43ffcd..f67e4b8aa9fa3f169ab3b69bfcd1b8a2423d132d 100644 (file)
@@ -64,8 +64,7 @@ int uc_get_rate_by_name(const char *name, gauge_t *ret_value);
  * authors are discouraged from writing special cases for gauge metrics.
  *
  * Returns zero on success, ENOENT if the metric is not in the cache, and
- * EAGAIN if the metric has state STATE_MISSING.
- */
+ * EAGAIN if the metric has state STATE_MISSING. */
 int uc_get_rate(metric_t const *m, gauge_t *ret_value);
 
 int uc_get_value_by_name(const char *name, value_t *ret_value);
@@ -77,9 +76,9 @@ typedef struct {
   int err;
 } uc_first_metric_result_t;
 
-// uc_first_metric returns the first observed metric value and time.
-// For cumulative metrics (METRIC_TYPE_COUNTER and METRIC_TYPE_FPCOUNTER),
-// counter resets and counter overflows will reset the value.
+/* uc_first_metric returns the first observed metric value and time.
+ * For cumulative metrics (METRIC_TYPE_COUNTER and METRIC_TYPE_FPCOUNTER),
+ * counter resets and counter overflows will reset the value. */
 uc_first_metric_result_t uc_first_metric(metric_t const *m);
 
 size_t uc_get_size(void);