mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
cpuload Updates for NuttX 9.1.0-
This commit is contained in:
committed by
Daniel Agar
parent
06d030b6d9
commit
68e3fd9f37
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user