minor fix;

This commit is contained in:
Alexander Vdolainen 2015-04-02 20:01:40 +03:00
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);