corrected calc. of progress bar for rate_multiplicator and wrong start at -1

This commit is contained in:
2020-06-30 23:45:31 +02:00
parent cdd085eabc
commit e0ab620809
+2 -1
View File
@@ -39,7 +39,8 @@ class BrokerClient:
if current_pulseid > stop_pulseid:
break
sleep(self.wait_time)
pbar.update(current_pulseid - start_pulseid - pbar.n)
delta_n = 1 + ((current_pulseid - start_pulseid) // self.config.rate_multiplicator) - pbar.n
pbar.update(delta_n) # clamp [0, 1]
self.running = False