PX4/Firmware — pull request #696 by DrTon (2014-02-27 14:43:39+00:00)
Title: top: CPU % indication bug fixed

In current version first digit after dot is always 0!

Before:

PID COMMAND CPU(ms) CPU(%) USED/STACK PRIO(BASE) STATE
0 Idle Task 120020 50.060 0/ 0 0 ( 0) READY
1 hpwork 6322 2.082 740/ 3992 192 (192) w:sig
2 lpwork 1601 0.020 628/ 3992 50 ( 50) READY
3 init 1472 0.000 1388/ 4088 100 (100) w:sem
43 nshterm 0 0.000 508/ 2992 100 (100) w:sem
54 mavlink_uart_rcv_0 107 0.080 1676/ 2992 215 (215) w:sem
45 commander 635 0.040 1772/ 2992 215 (215) w:sig
46 commander_low_prio 65 0.000 516/ 2984 50 ( 50) w:sem
48 px4io 11213 5.044 820/ 2040 240 (240) w:sem
53 mavlink_if0 1808 0.000 1004/ 2040 100 (100) w:sig
100 attitude_estimator_ekf 47184 21.057 12812/13992 250 (250) w:sem
56 dataman 1 0.000 748/ 2040 250 (250) w:sem
58 navigator 3178 1.021 892/ 2040 250 (250) w:sem
74 sensors_task 7514 3.042 1004/ 2040 250 (250) w:sem
111 top 217 3.082 1276/ 2992 100 (100) RUN
82 sdlog2 376 0.080 1836/ 2992 70 ( 70) w:sem
84 gps 761 0.020 1004/ 2040 220 (220) w:sem
102 position_estimator_inav 6111 2.002 1980/ 4088 250 (250) w:sem
104 mc_att_control 9385 4.023 944/ 2040 250 (250) w:sem
108 mc_pos_control 1870 0.000 844/ 2040 250 (250) w:sem

After:

PID COMMAND CPU(ms) CPU(%) USED/STACK PRIO(BASE) STATE
0 Idle Task 7568 50.718 0/ 0 0 ( 0) READY
1 hpwork 447 2.875 732/ 3992 192 (192) w:sig
2 lpwork 110 0.638 628/ 3992 50 ( 50) READY
3 init 1479 0.000 1388/ 4088 100 (100) w:sem
43 nshterm 0 0.000 492/ 2992 100 (100) w:sem
54 mavlink_uart_rcv_0 8 0.000 1764/ 2992 215 (215) w:sem
45 commander 99 0.239 1780/ 2992 215 (215) w:sig
46 commander_low_prio 4 0.000 540/ 2984 50 ( 50) w:sem
48 px4io 795 5.271 788/ 2040 240 (240) w:sem
53 mavlink_if0 130 0.798 1004/ 2040 100 (100) w:sig
113 top 476 3.514 1276/ 2992 100 (100) RUN
56 dataman 2 0.000 748/ 2040 250 (250) w:sem
58 navigator 193 1.437 932/ 2040 250 (250) w:sem
74 sensors_task 546 3.514 1092/ 2040 250 (250) w:sem
82 sdlog2 94 0.079 1836/ 2992 70 ( 70) w:sem
84 gps 54 0.319 940/ 2040 220 (220) w:sig
100 attitude_estimator_ekf 3252 21.805 12812/13992 250 (250) w:sem
102 position_estimator_inav 390 2.795 2028/ 4088 250 (250) w:sem
104 mc_att_control 669 4.472 944/ 2040 250 (250) w:sem
111 mc_pos_control 104 0.798 956/ 2040 250 (250) w:sem