diff options
author | pixel <pixel> | 2008-01-21 16:40:04 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-01-21 16:40:04 +0000 |
commit | 55c77ac08247fead12a95ba700232f0095655b70 (patch) | |
tree | 85db5f154544728ab82f47efc489707e4c6ac7c1 /lib/LuaTask.cc | |
parent | 40b7e7cd989b6799bdf92e3980056c8a92b44627 (diff) |
Fixing NB_Tasks and NB_Zombies, and putting a default delay of one second for DelayedTask.
Diffstat (limited to 'lib/LuaTask.cc')
-rw-r--r-- | lib/LuaTask.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc index 45d19c1..13a98f9 100644 --- a/lib/LuaTask.cc +++ b/lib/LuaTask.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaTask.cc,v 1.23 2008-01-21 09:49:46 pixel Exp $ */ +/* $Id: LuaTask.cc,v 1.24 2008-01-21 16:40:04 pixel Exp $ */ #include <LuaTask.h> #include <LuaHandle.h> @@ -335,14 +335,14 @@ class DelayedTask : public Task { int sLua_TaskMan::TaskMan_proceed_statics(Lua * L, int n, int caller) { String cmd; - int delay = 0; + int delay = 1; switch (caller) { case TASKMAN_NB_TASKS: - return TaskMan::nb_tasks(); + L->push((lua_Number) TaskMan::nb_tasks()); break; case TASKMAN_NB_ZOMBIES: - return TaskMan::nb_zombies(); + L->push((lua_Number) TaskMan::nb_zombies()); break; case TASKMAN_DELAYED_TASK: cmd = L->tostring(1); |