]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
format_json: Format with contrib/format.sh
authorFlorian Forster <octo@google.com>
Fri, 17 Jul 2020 16:07:49 +0000 (18:07 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:54 +0000 (13:40 +0200)
src/utils/format_json/format_json.c

index af98c804329ba081ffe3c2e07347a45b8413258e..e759d24b3343c0080664d72a4f4019c4a0f05a75 100644 (file)
@@ -296,8 +296,8 @@ static int format_alert(yajl_gen g, notification_t const *n) /* {{{ */
   strbuf_t buf = STRBUF_CREATE;
   strbuf_print(&buf, "collectd_");
   if (strcmp(n->plugin, n->type) != 0) {
-         strbuf_print(&buf, n->plugin);
-         strbuf_print(&buf, "_");
+    strbuf_print(&buf, n->plugin);
+    strbuf_print(&buf, "_");
   }
   strbuf_print(&buf, n->type);
   CHECK(json_add_string(g, buf.ptr));