No idea why the previous round missed these files.
// The gRPC server embedded into collectd will inject them into the system
// just like the network plugin.
rpc DispatchValues(stream DispatchValuesRequest)
- returns (DispatchValuesResponse);
+ returns(DispatchValuesResponse);
// QueryValues returns a stream of matching value lists from collectd's
// internal cache.
- rpc QueryValues(QueryValuesRequest) returns (stream QueryValuesResponse);
+ rpc QueryValues(QueryValuesRequest) returns(stream QueryValuesResponse);
}
// The arguments to DispatchValues.
chrony_push_data("time_ref", DAEMON_NAME, time_ref); /* unit: s */
chrony_push_data(
"time_offset_ntp", DAEMON_NAME,
- ntohf(
- chrony_resp.body.tracking.f_current_correction)); /* Offset between
- system time and
- NTP, unit: s */
+ ntohf(chrony_resp.body.tracking.f_current_correction)); /* Offset between
+ system time and
+ NTP, unit: s */
chrony_push_data(
"time_offset", DAEMON_NAME,
ntohf(
ntohf(chrony_resp.body.tracking.f_skew_ppm));
chrony_push_data(
"root_delay", DAEMON_NAME,
- ntohf(
- chrony_resp.body.tracking.f_root_delay)); /* Network latency between
- local daemon and the
- current source */
+ ntohf(chrony_resp.body.tracking.f_root_delay)); /* Network latency between
+ local daemon and the
+ current source */
chrony_push_data("root_dispersion", DAEMON_NAME,
ntohf(chrony_resp.body.tracking.f_root_dispersion));
chrony_push_data("clock_last_update", DAEMON_NAME,
else if (kn->data_type == KSTAT_DATA_UINT32)
retval = (long long)kn->value.ui32;
else if (kn->data_type == KSTAT_DATA_INT64)
- retval = (long long)
- kn->value.i64; /* According to ANSI C99 `long long' must hold
- at least 64 bits */
+ retval =
+ (long long)kn->value.i64; /* According to ANSI C99 `long long' must hold
+ at least 64 bits */
else if (kn->data_type == KSTAT_DATA_UINT64)
retval = (long long)kn->value.ui64; /* XXX: Might overflow! */
else
* GCC will complain about the macro definition. */
#define DONT_POISON_SPRINTF_YET
-#include "utils_lua.h"
#include "common.h"
+#include "utils_lua.h"
static int ltoc_values(lua_State *L, /* {{{ */
const data_set_t *ds, value_t *ret_values) {