mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 04:11:36 +08:00
print_load: Removed unused variable to fix compilation on macos
This commit is contained in:
committed by
Beat Küng
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;
|
mach_msg_type_number_t thread_info_count;
|
||||||
|
|
||||||
thread_basic_info_t basic_info_th;
|
thread_basic_info_t basic_info_th;
|
||||||
uint32_t stat_thread = 0;
|
|
||||||
|
|
||||||
// get all threads of the PX4 main task
|
// get all threads of the PX4 main task
|
||||||
kr = task_threads(task_handle, &thread_list, &th_cnt);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (th_cnt > 0) {
|
|
||||||
stat_thread += th_cnt;
|
|
||||||
}
|
|
||||||
|
|
||||||
long tot_sec = 0;
|
long tot_sec = 0;
|
||||||
long tot_usec = 0;
|
long tot_usec = 0;
|
||||||
long tot_cpu = 0;
|
long tot_cpu = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user