aboutsummaryrefslogtreecommitdiffstats
path: root/src/luaevent.c
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-09-05 23:35:31 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-09-05 23:35:31 -0400
commit35c12fdb05ee081794f621688bb299a9a63ebf2c (patch)
tree542a02f63dfe675e299c84c0a5fe2266908a18fd /src/luaevent.c
parentfb5f78f8c75ce907ae2796d4300c7f8053d20732 (diff)
downloadluaevent-prosody-35c12fdb05ee081794f621688bb299a9a63ebf2c.tar.gz
luaevent-prosody-35c12fdb05ee081794f621688bb299a9a63ebf2c.zip
Fixed compilation issues
Diffstat (limited to 'src/luaevent.c')
-rw-r--r--src/luaevent.c4
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 */