From: Scott Sanders Date: Sat, 1 Oct 2011 22:46:06 +0000 (-0400) Subject: Move send buffer size to the top of the file X-Git-Tag: collectd-5.1.0~35^2~25^2~15 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;ds=sidebyside;h=e2541dfbfe8c9d7ec75ccd128a4b2d3eeb462a30;p=collectd.git Move send buffer size to the top of the file --- diff --git a/src/write_graphite.c b/src/write_graphite.c index 8090c8b3..02ac6964 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -56,6 +56,10 @@ (vl)->type, (vl)->type_instance, prefix, name) #endif +#ifndef WG_SEND_BUF_SIZE +#define WG_SEND_BUF_SIZE 4096 +#endif + /* * Private variables */ @@ -70,7 +74,7 @@ struct wg_callback int port; char *prefix; - char send_buf[4096]; + char send_buf[WG_SEND_BUF_SIZE]; size_t send_buf_free; size_t send_buf_fill; cdtime_t send_buf_init_time;