From 2d98b8822b398923f1417229f129d6d1b141311d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 20 Sep 2019 16:58:32 +0800 Subject: =?UTF-8?q?=E7=AE=80=E5=8D=95=E7=9A=84=E4=BD=93=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/pub/init.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server-beta/src/pub/init.lua') diff --git a/server-beta/src/pub/init.lua b/server-beta/src/pub/init.lua index f86a42b6..bf188e8d 100644 --- a/server-beta/src/pub/init.lua +++ b/server-beta/src/pub/init.lua @@ -4,4 +4,8 @@ pub.on('log', function (params, brave) log.raw(brave.id, params.level, params.msg, params.src, params.line) end) +pub.on('mem', function (count, brave) + brave.memory = count +end) + return pub -- cgit v1.2.3