[Olsr-dev] [PATCH v1 37/44] jsoninfo: use a smaller (2 CPU pages) initial buffer
Ferry Huberts
(spam-protected)
Fri Nov 27 10:43:30 CET 2015
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
lib/jsoninfo/src/olsrd_jsoninfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/jsoninfo/src/olsrd_jsoninfo.c b/lib/jsoninfo/src/olsrd_jsoninfo.c
index 1655553..fc525cf 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo.c
@@ -1362,7 +1362,7 @@ static void send_info(unsigned int send_what, int the_socket) {
entrynumber[0] = 0;
currentjsondepth = 0;
- abuf_init(&abuf, 32768);
+ abuf_init(&abuf, 2 * 4096);
// only add if normal format
if (send_what & SIW_ALL) {
--
2.5.0
More information about the Olsr-dev
mailing list