Commit d434580d authored by vysheng's avatar vysheng

Merge pull request #380 from Floens/postpone-time-fraction

Support time fractions in lua postpone.
parents 1ae22249 bb302b36
......@@ -1391,7 +1391,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