Fix TV_ADD_MSEC macro

This commit is contained in:
Bert Münnich 2011-10-13 16:53:17 +02:00
parent 4383a651c7
commit 61caa5511f

4
util.h
View File

@ -47,8 +47,8 @@
} }
#define TV_ADD_MSEC(tv,t) { \ #define TV_ADD_MSEC(tv,t) { \
(tv)->tv_sec = (t) / 1000; \ (tv)->tv_sec += (t) / 1000; \
(tv)->tv_usec = (t) % 1000 * 1000; \ (tv)->tv_usec += (t) % 1000 * 1000; \
} }
typedef struct { typedef struct {