bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add last processor to process stat


From: Samuel Thibault
Subject: Re: [PATCH] Add last processor to process stat
Date: Mon, 28 Oct 2019 23:53:59 +0100
User-agent: NeoMutt/20170609 (1.8.3)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]