#endif
}
-int
+unsigned int
ev_method (EV_P)
{
return method;
now_floor = mn_now;
rtmn_diff = ev_rt_now - mn_now;
- if (!(flags & EVMETHOD_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
+ if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
flags = atoi (getenv ("LIBEV_FLAGS"));
if (!(flags & 0x0000ffff))
ev_timer_stop (EV_A_ w);
}
else if (w->repeat)
- ev_timer_start (EV_A_ w);
+ {
+ w->at = w->repeat;
+ ev_timer_start (EV_A_ w);
+ }
}
#if EV_PERIODICS