From 8666e10639cf12484f1f7d351f607e97f1ae315b Mon Sep 17 00:00:00 2001 From: carlos Date: Mon, 30 Mar 2020 17:27:25 -0300 Subject: [PATCH] tiz answer --- src/lib/eina/eina_debug_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_debug_cpu.c b/src/lib/eina/eina_debug_cpu.c index 473015a15a..cce4f849bc 100644 --- a/src/lib/eina/eina_debug_cpu.c +++ b/src/lib/eina/eina_debug_cpu.c @@ -80,7 +80,7 @@ _sysmon(void *data EINA_UNUSED, Eina_Thread thr EINA_UNUSED) for (i = 0; i < _eina_debug_thread_active_num; i++) { // get the correct clock id to use for the target thread - pthread_getcpuclockid(self, &cid); + pthread_getcpuclockid (_eina_debug_thread_active[i].thread, &cid); // get the clock cpu time accumulation for that threas clock_gettime(cid, &t);