From 6d4317c4e23171219f825163d01cd896fee3d1f5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 6 Sep 2015 12:28:09 +0200 Subject: [PATCH] Annotate mallinfo status for command server-status --- src/http_command.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/http_command.c b/src/http_command.c index 4123ccc..4a05abd 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -49,18 +49,27 @@ void print_meminfo(WRBUF wrbuf) struct mallinfo minfo; minfo = mallinfo(); wrbuf_printf(wrbuf, " \n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " %d\n" - " \n", - minfo.arena, minfo.uordblks, minfo.fordblks,minfo.ordblks, minfo.keepcost, minfo.hblks, minfo.hblkhd, minfo.arena + minfo.hblkhd, minfo.uordblks + minfo.hblkhd); - + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " %d\n" + " \n", + minfo.arena, + minfo.ordblks, + minfo.smblks, + minfo.hblks, + minfo.hblkhd, + minfo.usmblks, + minfo.fsmblks, + minfo.uordblks, + minfo.fordblks, + minfo.keepcost); } #else #define print_meminfo(x) -- 1.7.10.4