summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 16fde0c)
raw | patch | inline | side by side (parent: 16fde0c)
author | Sam Pointer <sampointer> | |
Wed, 25 Nov 2015 15:43:07 +0000 (15:43 +0000) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 28 Nov 2015 06:59:05 +0000 (07:59 +0100) |
Signed-off-by: Florian Forster <octo@collectd.org>
src/write_graphite.c | patch | blob | history |
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 504ea9d45fa2e55534e1fdc62fec4a0aab01db73..547e5dbcc33ba2f9d9c21aa3d22f782eea0f6714 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
ssize_t status = 0;
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
- if (status < 0)
+ if (status != 0)
{
const char *protocol = cb->protocol ? cb->protocol : WG_DEFAULT_PROTOCOL;