From: Florian Forster Date: Wed, 31 Jan 2024 12:45:58 +0000 (+0100) Subject: src/daemon/utils_cache.h: Unify comment style. X-Git-Tag: collectd-6.0.0.rc2~9^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c19ba7334572a7c84dba4d39fbf120afa44cba7;p=thirdparty%2Fcollectd.git src/daemon/utils_cache.h: Unify comment style. --- 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);