From: Florian Forster Date: Wed, 8 Feb 2012 17:25:03 +0000 (+0100) Subject: write_graphite plugin: Use CR-LF line endings. X-Git-Tag: collectd-5.1.0~35^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2c31c879e1ed7417e9b612de18de41040a499922;p=collectd.git write_graphite plugin: Use CR-LF line endings. 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 --- diff --git a/src/write_graphite.c b/src/write_graphite.c index de2266e8..2d61cac0 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -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));