127 |
else if (event_base->time.sec_real > (uintmax_t)newtime.tv_sec) |
else if (event_base->time.sec_real > (uintmax_t)newtime.tv_sec) |
128 |
ilog(LOG_TYPE_IRCD, "System clock is running backwards - (%ju < %ju)", |
ilog(LOG_TYPE_IRCD, "System clock is running backwards - (%ju < %ju)", |
129 |
(uintmax_t)newtime.tv_sec, event_base->time.sec_real); |
(uintmax_t)newtime.tv_sec, event_base->time.sec_real); |
130 |
else |
event_base->time.sec_real = newtime.tv_sec; |
|
event_base->time.sec_real = newtime.tv_sec; |
|
131 |
|
|
132 |
#ifdef CLOCK_MONOTONIC_RAW |
#ifdef CLOCK_MONOTONIC_RAW |
133 |
if (clock_gettime(CLOCK_MONOTONIC_RAW, &newtime) == 0) |
if (clock_gettime(CLOCK_MONOTONIC_RAW, &newtime) == 0) |