minor fix;

v0.5.xx
Alexander Vdolainen 10 years ago
parent 7f1efcf017
commit 4c3528e704

@ -272,7 +272,8 @@ static void *__poll_thread(void *poll)
}
if(resched) { /* ok now we need to resched and descrease/increase thread poll volume */
mdrate = ((DQTPOLL_DELTASE*1000000) + DQTPOLL_DELTAMS)/p->msgop;
if(p->msgop) mdrate = ((DQTPOLL_DELTASE*1000000) + DQTPOLL_DELTAMS)/p->msgop;
else mdrate = 0;
if((mdrate > p->poll_value) && (p->poll_value < MAX_POLL_VALUE)) { /* increase ! */
if((npoll = malloc(sizeof(struct __pthrd_data)))) {
npoll->myid = idx_allocate(p->idx);

Loading…
Cancel
Save