projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98a6885
)
libs/core: make use of global memory limits if supported
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Jul 2009 16:01:53 +0000
(16:01 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Jul 2009 16:01:53 +0000
(16:01 +0000)
libs/core/luasrc/init.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/init.lua
b/libs/core/luasrc/init.lua
index dc91a36a0f03d2600d987e2deb6bd259d270342d..3297901accd3f96fd1bc926c4e8db27e9d1d009b 100644
(file)
--- a/
libs/core/luasrc/init.lua
+++ b/
libs/core/luasrc/init.lua
@@
-26,6
+26,11
@@
limitations under the License.
local require = require
+-- Set memory limit if supported
+if _G.set_memory_limit then
+ set_memory_limit(1024 * 1024 * 1.5)
+end
+
-- Make sure that bitlib is loaded
if not _G.bit then
_G.bit = require "bit"