Commit bb302b36 authored by Floens's avatar Floens

Support time fractions in lua postpone.

parent d74db187
......@@ -1414,7 +1414,10 @@ static int postpone_from_lua (lua_State *L) {
t[1] = a2;
*(void **)(t + 2) = ev;
struct timeval ts= { timeout, 0};
struct timeval ts= {
.tv_sec = (long)timeout,
.tv_usec = (timeout - ((long)timeout)) * 1000000
};
event_add (ev, &ts);
lua_pushboolean (L, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment