mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 09:31:36 +08:00
Merge pull request #696 from PX4/top_fix
top: CPU % indication bug fixed
This commit is contained in:
@@ -233,8 +233,8 @@ top_main(void)
|
|||||||
system_load.tasks[i].tcb->pid,
|
system_load.tasks[i].tcb->pid,
|
||||||
CONFIG_TASK_NAME_SIZE, system_load.tasks[i].tcb->name,
|
CONFIG_TASK_NAME_SIZE, system_load.tasks[i].tcb->name,
|
||||||
(system_load.tasks[i].total_runtime / 1000),
|
(system_load.tasks[i].total_runtime / 1000),
|
||||||
(int)(curr_loads[i] * 100),
|
(int)(curr_loads[i] * 100.0f),
|
||||||
(int)(curr_loads[i] * 100000.0f - (int)(curr_loads[i] * 1000.0f) * 100),
|
(int)((curr_loads[i] * 100.0f - (int)(curr_loads[i] * 100.0f)) * 1000),
|
||||||
stack_size - stack_free,
|
stack_size - stack_free,
|
||||||
stack_size,
|
stack_size,
|
||||||
system_load.tasks[i].tcb->sched_priority,
|
system_load.tasks[i].tcb->sched_priority,
|
||||||
|
|||||||
Reference in New Issue
Block a user