From: Adam Dickmeiss Date: Sun, 6 Sep 2015 10:28:09 +0000 (+0200) Subject: Annotate mallinfo status for command server-status X-Git-Tag: v1.12.4~9 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6d4317c4e23171219f825163d01cd896fee3d1f5;p=pazpar2-moved-to-github.git Annotate mallinfo status for command server-status --- 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)