summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2008-05-08 20:49:12 +0000
committerroot <root>2008-05-08 20:49:12 +0000
commit5a0dab227582692d6b56d418320d8897eb80ab41 (patch)
tree3e7876ee758cec8712ebc3a1fd332ba0701049a8 /ev.c
parent7cab20ce227655a6e6fc21f39f43efc8ec5f7a98 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 132963c..75fc9b5 100644
--- a/ev.c
+++ b/ev.c
@@ -768,6 +768,7 @@ fd_rearm_all (EV_P)
* the difference is about 5% with 50000+ watchers.
*/
#define USE_4HEAP !EV_MINIMAL
+#define USE_4HEAP 1/* they do not work corretcly */
#if USE_4HEAP
#define DHEAP 4
@@ -783,7 +784,7 @@ upheap (WT *heap, int k)
{
int p = ((k - HEAP0 - 1) / DHEAP) + HEAP0;
- if (p >= HEAP0 || heap [p]->at <= w->at)
+ if (p == k || heap [p]->at <= w->at)
break;
heap [k] = heap [p];