Almudena Garcia, le lun. 28 oct. 2019 20:16:33 +0100, a ecrit: > + /* if the structure read doesn't include last_processor field, set It > to 0 */ > + if(thcount >= THREAD_SCHED_INFO_COUNT){ > + thds[i]->last_processor = 0; > + }
That'd rather be if(thcount < THREAD_SCHED_INFO_COUNT), and better make it akin to other additions: if (thcount < 8). Samuel