X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_graphite.c;h=a7eef3fb435616ca6093207c385eb8ba90a104a2;hb=f14feb1eddfe5760a64640b98ab7bbc5c493f614;hp=41451a8cee8f8d0bab4dda5d81361b3efd30a229;hpb=ca316d91e178412604ea8462dc60a8bc32cbfc87;p=collectd.git diff --git a/src/write_graphite.c b/src/write_graphite.c index 41451a8c..a7eef3fb 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -132,7 +132,7 @@ static int wg_send_buffer (struct wg_callback *cb) 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;