summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 352eee4)
raw | patch | inline | side by side (parent: 352eee4)
author | Scott Sanders <scott@jssjr.com> | |
Sat, 1 Oct 2011 22:46:06 +0000 (18:46 -0400) | ||
committer | Scott Sanders <scott@jssjr.com> | |
Sat, 1 Oct 2011 22:46:06 +0000 (18:46 -0400) |
src/write_graphite.c | patch | blob | history |
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 8090c8b3c8fb242154f19dd9e67ce5a64032260d..02ac696485079e2670c402e57ff3e84366631b51 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
(vl)->type, (vl)->type_instance, prefix, name)
#endif
+#ifndef WG_SEND_BUF_SIZE
+#define WG_SEND_BUF_SIZE 4096
+#endif
+
/*
* Private variables
*/
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;