]> granicus.if.org Git - libevent/commitdiff
type; set the priorities based on the correct base; reported by Vinh D. Lee
authorNiels Provos <provos@gmail.com>
Sun, 10 Apr 2005 07:18:18 +0000 (07:18 +0000)
committerNiels Provos <provos@gmail.com>
Sun, 10 Apr 2005 07:18:18 +0000 (07:18 +0000)
svn:r147

event.c

diff --git a/event.c b/event.c
index b9b4e28f9688b087386705cd8e265a035b0cf483..8220afa84df3bfe45cdecaf9871dac1afce96cbb 100644 (file)
--- 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);
 }