Fix TV_ADD_MSEC macro
This commit is contained in:
parent
4383a651c7
commit
61caa5511f
4
util.h
4
util.h
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user