autotest: correct time-spent-waiting-to-arm for zero case

This commit is contained in:
Peter Barker 2020-07-21 22:54:33 +10:00 committed by Peter Barker
parent d298980969
commit ccff006517
1 changed files with 3 additions and 3 deletions

View File

@ -6884,10 +6884,10 @@ switch value'''
avg = None avg = None
else: else:
avg = self.total_waiting_to_arm_time/self.waiting_to_arm_count avg = self.total_waiting_to_arm_time/self.waiting_to_arm_count
self.progress("Spent %f seconds waiting to arm. count=%u avg=%f" % self.progress("Spent %f seconds waiting to arm. count=%u avg=%s" %
(self.total_waiting_to_arm_time, (self.total_waiting_to_arm_time,
self.waiting_to_arm_count, self.waiting_to_arm_count,
avg)) str(avg)))
self.show_test_timings() self.show_test_timings()
if self.forced_post_test_sitl_reboots != 0: if self.forced_post_test_sitl_reboots != 0:
print("Had to force-reset SITL %u times" % print("Had to force-reset SITL %u times" %