--- libev/ev.c 2007/12/11 03:18:33 1.174 +++ libev/ev.c 2007/12/11 04:08:54 1.175 @@ -1239,7 +1239,7 @@ } else if (w->interval) { - ((WT)w)->at = w->offset + floor ((ev_rt_now - w->offset) / w->interval + 1.) * w->interval; + ((WT)w)->at = w->offset + (floor ((ev_rt_now - w->offset) / w->interval) + 1.) * w->interval; assert (("ev_periodic timeout in the past detected while processing timers, negative interval?", ((WT)w)->at > ev_rt_now)); downheap ((WT *)periodics, periodiccnt, 0); }