moved progress bar update before break (in order to see the final update)

This commit is contained in:
2020-07-04 12:54:57 +02:00
parent c2c4fcfe87
commit cd0cfef0b1
+2 -2
View File
@@ -39,11 +39,11 @@ class BrokerClient:
with stqdm(total=n_pulses) as pbar:
while self.running:
current_pulseid = get_current_pulseid()
delta_n = (current_pulseid - start_pulseid) // rate_multiplicator
pbar.set(delta_n)
if current_pulseid > stop_pulseid:
break
sleep(self.wait_time)
delta_n = (current_pulseid - start_pulseid) // rate_multiplicator
pbar.set(delta_n)
if not self.running: # stopped early
stop_pulseid = current_pulseid