From 35c12fdb05ee081794f621688bb299a9a63ebf2c Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Wed, 5 Sep 2007 23:35:31 -0400 Subject: Fixed compilation issues --- src/luaevent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/luaevent.c') diff --git a/src/luaevent.c b/src/luaevent.c index 596e4e1..8903af1 100644 --- a/src/luaevent.c +++ b/src/luaevent.c @@ -46,8 +46,8 @@ int getSocketFd(lua_State* L, int idx) { } void load_timeval(double time, struct timeval *tv) { - tv->sec = (int)time; - tv->usec = (time * 1000000) % 1000000; + tv->tv_sec = (int)time; + tv->tv_usec = (int)(time * 1000000) % 1000000; } /* sock, event, callback, timeout */ -- cgit v1.2.3