Browse Source

print_load: Removed unused variable to fix compilation on macos

v1.13.0-BW
Thomas Debrunner 3 years ago committed by Beat Küng
parent
commit
5b0fc8f507
  1. 5
      platforms/posix/src/px4/common/print_load.cpp

5
platforms/posix/src/px4/common/print_load.cpp

@ -116,7 +116,6 @@ void print_load(int fd, struct print_load_s *print_state) @@ -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) @@ -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…
Cancel
Save