jsoninfo: use a smaller (2 CPU pages) initial buffer
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 19:04:27 +0000 (20:04 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:22 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 1655553..fc525cf 100644 (file)
@@ -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) {