Skip to content

Commit ed76be1

Browse files
author
ruti
committed
Increase counter after swop
1 parent a3a98c7 commit ed76be1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extend.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,13 @@ static int on_trigger(int type, struct poolhd *pool, struct eval *val)
339339
lav->dp_mask |= dp->bit;
340340
}
341341
if ((params.auto_level & AUTO_SORT)
342-
&& !(lav->dp->bit & (cache->dp_mask | uncheked)))
342+
&& !(lav->dp->bit & cache->dp_mask))
343343
{
344-
if (next && lav->dp->pri > next->pri)
344+
if (next && lav->dp->pri > next->pri
345+
&& !(lav->dp->bit & uncheked)) {
345346
swop_groups(lav->dp, next);
346-
else
347-
lav->dp->pri++;
347+
}
348+
lav->dp->pri++;
348349
}
349350
if (!next) {
350351
LOG(LOG_S, "unreach ip: %s\n", ADDR_STR);

0 commit comments

Comments
 (0)