diff options
author | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:35:31 -0400 |
---|---|---|
committer | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:35:31 -0400 |
commit | 35c12fdb05ee081794f621688bb299a9a63ebf2c (patch) | |
tree | 542a02f63dfe675e299c84c0a5fe2266908a18fd /src/luaevent.c | |
parent | fb5f78f8c75ce907ae2796d4300c7f8053d20732 (diff) | |
download | luaevent-prosody-35c12fdb05ee081794f621688bb299a9a63ebf2c.tar.gz luaevent-prosody-35c12fdb05ee081794f621688bb299a9a63ebf2c.zip |
Fixed compilation issues
Diffstat (limited to 'src/luaevent.c')
-rw-r--r-- | src/luaevent.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |