minor fix;
This commit is contained in:
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 */
|
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((mdrate > p->poll_value) && (p->poll_value < MAX_POLL_VALUE)) { /* increase ! */
|
||||||
if((npoll = malloc(sizeof(struct __pthrd_data)))) {
|
if((npoll = malloc(sizeof(struct __pthrd_data)))) {
|
||||||
npoll->myid = idx_allocate(p->idx);
|
npoll->myid = idx_allocate(p->idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user