summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2005-04-10 07:18:18 +0000
committerNiels Provos <provos@gmail.com>2005-04-10 07:18:18 +0000
commitbc2c695b7672490e320b28f602e8207ce2dd3cac (patch)
treef148b590e2e3bb768411a11e96684f26315e857c
parent6ba5e0d03ed6db885ceec5313e66e02c5aaa8db1 (diff)
downloadlibevent-bc2c695b7672490e320b28f602e8207ce2dd3cac.tar.gz
type; set the priorities based on the correct base; reported by Vinh D. Lee
svn:r147
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index b9b4e28f..8220afa8 100644
--- a/event.c
+++ b/event.c
@@ -468,7 +468,7 @@ event_base_set(struct event_base *base, struct event *ev)
return (-1);
ev->ev_base = base;
- ev->ev_pri = current_base->nactivequeues/2;
+ ev->ev_pri = base->nactivequeues/2;
return (0);
}