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: Almudena Garcia
Subject: Re: [PATCH] Add last processor to process stat
Date: Tue, 29 Oct 2019 00:05:09 +0100

Fixed

El lun., 28 oct. 2019 a las 23:54, Samuel Thibault (<samuel.thibault@gnu.org>) escribió:
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

Attachment: add_lastprocessor_v6.patch
Description: Text Data


reply via email to

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