More reformatting.
authorFlorian Forster <octo@collectd.org>
Mon, 28 Nov 2016 21:22:01 +0000 (22:22 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 28 Nov 2016 21:22:01 +0000 (22:22 +0100)
No idea why the previous round missed these files.

proto/collectd.proto
src/chrony.c
src/daemon/common.c
src/utils_lua.c

index 917c5de..c706ea1 100644 (file)
@@ -34,11 +34,11 @@ service Collectd {
   // 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.
index bf4da4a..a10e5f6 100644 (file)
@@ -786,10 +786,9 @@ static int chrony_request_daemon_stats(void) {
   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(
@@ -807,10 +806,9 @@ static int chrony_request_daemon_stats(void) {
                    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,
index fce6a56..7ead55d 100644 (file)
@@ -718,9 +718,9 @@ long long get_kstat_value(kstat_t *ksp, char *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
index 7f2ba04..dcb84af 100644 (file)
@@ -28,8 +28,8 @@
  * 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) {