mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
print_load: Removed unused variable to fix compilation on macos
This commit is contained in:
parent
36e6527013
commit
5b0fc8f507
@ -116,7 +116,6 @@ void print_load(int fd, struct print_load_s *print_state)
|
||||
mach_msg_type_number_t thread_info_count;
|
||||
|
||||
thread_basic_info_t basic_info_th;
|
||||
uint32_t stat_thread = 0;
|
||||
|
||||
// get all threads of the PX4 main task
|
||||
kr = task_threads(task_handle, &thread_list, &th_cnt);
|
||||
@ -126,10 +125,6 @@ void print_load(int fd, struct print_load_s *print_state)
|
||||
return;
|
||||
}
|
||||
|
||||
if (th_cnt > 0) {
|
||||
stat_thread += th_cnt;
|
||||
}
|
||||
|
||||
long tot_sec = 0;
|
||||
long tot_usec = 0;
|
||||
long tot_cpu = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user