uhm - i obliterated a gettimeofday that was required for remapping the

timeouts to "real" time.  thanks to claudio for pointing that out.


svn:r211
This commit is contained in:
Niels Provos 2006-03-28 16:57:19 +00:00
parent 2e8051f593
commit 71108cd98b

View File

@ -561,7 +561,8 @@ event_pending(struct event *ev, short event, struct timeval *tv)
if (tv != NULL && (flags & event & EV_TIMEOUT)) {
gettime(&now);
timersub(&ev->ev_timeout, &now, &res);
gettime(&now);
/* correctly remap to real time */
gettimeofday(&now, NULL);
timeradd(&now, &res, tv);
}