projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
352eee4
)
Move send buffer size to the top of the file
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
8090c8b
..
02ac696
100644
(file)
--- 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;