write_graphite plugin: Use CR-LF line endings.
authorFlorian Forster <octo@collectd.org>
Wed, 8 Feb 2012 17:25:03 +0000 (18:25 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 8 Feb 2012 17:25:03 +0000 (18:25 +0100)
Using this line ending in ASCII conversations over the network has been a
convention since the 1970s, let's stick with it.

Change-Id: I5d0640e520a70483ab9256989f89e9e2dcab7643

src/write_graphite.c

index de2266e..2d61cac 100644 (file)
@@ -439,7 +439,7 @@ static int wg_send_message (const char* key, const char* value,
     char message[1024];
 
     message_len = (size_t) ssnprintf (message, sizeof (message),
-            "%s %s %.0f\n",
+            "%s %s %.0f\r\n",
             key,
             value,
             CDTIME_T_TO_DOUBLE(time));