summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-11 00:05:59 +0000
committerroot <root>2007-11-11 00:05:59 +0000
commit80f561c62ce8d30b87e4298b954ce280c4b5465f (patch)
tree21c8295a55a5656691a88ce6b9996b7c9f91f143 /ev.c
parentcf2e067e143e40c3b874a16069773fe04d3737bc (diff)
make timers best-effort non-drifting
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index a605a57..000c369 100644
--- a/ev.c
+++ b/ev.c
@@ -1339,7 +1339,7 @@ ev_timer_stop (EV_P_ struct ev_timer *w)
downheap ((WT *)timers, timercnt, ((W)w)->active - 1);
}
- ((WT)w)->at = w->repeat;
+ ((WT)w)->at -= mn_now;
ev_stop (EV_A_ (W)w);
}