From 58ff44297cc89f0f5e3d87c35d6af7db10c58ffe Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 17 Mar 2019 13:58:28 +0800 Subject: [PATCH] server-status: show correct statm value --- plugins/server-status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/server-status.js b/plugins/server-status.js index c32ac972d..eafbc3be2 100644 --- a/plugins/server-status.js +++ b/plugins/server-status.js @@ -103,7 +103,7 @@ function ws_open_server_status() if (jso.i.statm) { var sm = jso.i.statm.split(" "); s += ", Virt stack + heap Usage: " + - humanize(parseInt(sm[0], 10) * 4096) + "B"; + humanize(parseInt(sm[5], 10) * 4096) + "B"; } s += ", lws heap usage: " + humanize(jso.i.heap) + "B";