[Libevent-users] bug with 1.2
Scott Lamb
slamb at slamb.org
Tue Nov 14 04:51:07 EST 2006
On Nov 1, 2006, at 12:31 AM, Phil Oleson wrote:
> /* Setup the initial game_iteration pass */
> gettimeofday(&tvt, (struct timezone *) 0);
> timeradd(&tvt, &sleep_tv, &tvt);
>
> evtimer_set(&tev, iteration, &tev);
> evtimer_add(&tev, &tvt);
libevent takes relative times; you're passing in absolute. I have no
idea why this worked for you with versions prior to 1.2.
Cheers,
Scott
--
Scott Lamb <http://www.slamb.org/>
More information about the Libevent-users
mailing list