print_load: Removed unused variable to fix compilation on macos

This commit is contained in:
Thomas Debrunner 2022-03-18 09:41:56 +01:00 committed by Beat Küng
parent 36e6527013
commit 5b0fc8f507

View File

@ -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;