aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-02-20 22:53:12 +0000
committerMatthew Wild <mwild1@gmail.com>2015-02-20 22:53:12 +0000
commit37ec63e5d4e2f0bab64166216f6a02e5a465d933 (patch)
treef2376f7cc2ce8b7c5f9e943200f0e8f28a6bc7ec /plugins/mod_admin_telnet.lua
parent6e65036b9333c014d470d7a7226362ab78381f91 (diff)
downloadprosody-37ec63e5d4e2f0bab64166216f6a02e5a465d933.tar.gz
prosody-37ec63e5d4e2f0bab64166216f6a02e5a465d933.zip
mod_admin_telnet: Require util.pposix (fixes #471)
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index e4b5a045..437ded01 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -313,6 +313,7 @@ local function human(kb)
end
function def_env.server:memory()
+ local pposix = require("util.pposix");
if not pposix.meminfo then
return true, "Lua is using "..collectgarbage("count");
end