cpuload Updates for NuttX 9.1.0-

This commit is contained in:
David Sidrane
2020-06-17 14:41:53 -07:00
committed by Daniel Agar
parent 06d030b6d9
commit 68e3fd9f37
+1 -1
View File
@@ -100,7 +100,7 @@ void cpuload_initialize_once()
for (system_load.total_count = 0; system_load.total_count < static_tasks_count; system_load.total_count++) {
system_load.tasks[system_load.total_count].total_runtime = 0;
system_load.tasks[system_load.total_count].curr_start_time = 0;
system_load.tasks[system_load.total_count].tcb = sched_gettcb(
system_load.tasks[system_load.total_count].tcb = nxsched_get_tcb(
system_load.total_count); // it is assumed that these static threads have consecutive PIDs
system_load.tasks[system_load.total_count].valid = true;
}