fixed

El dom., 27 oct. 2019 a las 21:49, Samuel Thibault (<samuel.thiba...@gnu.org>)
escribió:

> Almudena Garcia, le dim. 27 oct. 2019 21:09:22 +0100, a ecrit:
> > Attached Hurd patch (without guards)
>
> It's still taking it from thbi, it should be thsi :)
>
> Samuel
>
>
--- hurd/procfs/process.c	2019-10-26 23:12:40.495359917 +0200
+++ hurd~/procfs/process.c	2019-10-27 21:07:51.088920405 +0100
@@ -221,14 +221,15 @@
   struct procinfo *pi = proc_stat_proc_info (ps);
   task_basic_info_t tbi = proc_stat_task_basic_info (ps);
   thread_basic_info_t thbi = proc_stat_thread_basic_info (ps);
+  thread_sched_info_t thsi = proc_stat_thread_sched_info (ps);
   const char *fn = args_filename (proc_stat_args (ps));
@@ -286,7 +287,7 @@
       (long unsigned) proc_stat_thread_rpc (ps), /* close enough */
       0L, 0L,
       0,
-      0,
+      (long unsigned) thsi->last_processor,
       0, 0,
       0LL);
 }

Reply via email to