1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

server-status: show correct statm value

This commit is contained in:
Andy Green 2019-03-17 13:58:28 +08:00
parent 15a0e543f4
commit 58ff44297c

View file

@ -103,7 +103,7 @@ function ws_open_server_status()
if (jso.i.statm) {
var sm = jso.i.statm.split(" ");
s += ", <span class=\"sn\">Virt stack + heap Usage:</span> <span class=\"v\">" +
humanize(parseInt(sm[0], 10) * 4096) + "B</span>";
humanize(parseInt(sm[5], 10) * 4096) + "B</span>";
}
s += ", <span class=\"sn\">lws heap usage:</span> <span class=\"v\">" +
humanize(jso.i.heap) + "B</span>";