projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f1399
)
util.timer: Pass current_time to timer callbacks
author
Matthew Wild
<mwild1@gmail.com>
Sat, 3 Oct 2009 01:33:33 +0000
(
02:33
+0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sat, 3 Oct 2009 01:33:33 +0000
(
02:33
+0100)
util/timer.lua
patch
|
blob
|
history
diff --git
a/util/timer.lua
b/util/timer.lua
index 819016de66c3fb8c7952604045bb628663c3e2fc..c0c7f25af48d0d4618fc41fbc23f0758cb1e30cc 100644
(file)
--- a/
util/timer.lua
+++ b/
util/timer.lua
@@
-42,7
+42,7
@@
ns_addtimer(function()
local t, func = d[1], d[2];
if t <= current_time then
data[i] = nil;
- local r = func();
+ local r = func(
current_time
);
if type(r) == "number" then _add_task(r, func); end
end
end