mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
system_load:Track Dynamic PID hash
This commit is contained in:
committed by
Daniel Agar
parent
e6d9c2b734
commit
bb913ae11a
@@ -45,8 +45,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef CONFIG_MAX_TASKS
|
||||
#define CONFIG_MAX_TASKS 64
|
||||
#ifndef CONFIG_FS_PROCFS_MAX_TASKS
|
||||
#define CONFIG_FS_PROCFS_MAX_TASKS 64
|
||||
#endif
|
||||
|
||||
struct print_load_s {
|
||||
@@ -57,7 +57,7 @@ struct print_load_s {
|
||||
|
||||
uint64_t new_time{0};
|
||||
uint64_t interval_start_time{0};
|
||||
uint64_t last_times[CONFIG_MAX_TASKS] {};
|
||||
uint64_t last_times[CONFIG_FS_PROCFS_MAX_TASKS] {};
|
||||
float interval_time_us{0.f};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user