From 1c19ba7334572a7c84dba4d39fbf120afa44cba7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 31 Jan 2024 13:45:58 +0100 Subject: [PATCH] src/daemon/utils_cache.h: Unify comment style. --- src/daemon/utils_cache.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/daemon/utils_cache.h b/src/daemon/utils_cache.h index 5756e6413..f67e4b8aa 100644 --- a/src/daemon/utils_cache.h +++ b/src/daemon/utils_cache.h @@ -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); -- 2.47.3