added more messages
This commit is contained in:
parent
0dea6c0f51
commit
4f735008ba
@ -182,12 +182,16 @@ def main():
|
|||||||
|
|
||||||
total_successful_uploads = len([req for req in benchmark_results.values() if req.upload_status_code == 200])
|
total_successful_uploads = len([req for req in benchmark_results.values() if req.upload_status_code == 200])
|
||||||
all_arrived = False
|
all_arrived = False
|
||||||
for _ in range(int(args.inflight_timeout)):
|
waiting_started = time.time()
|
||||||
time.sleep(1)
|
for _ in range(int(args.inflight_timeout*1000)):
|
||||||
if alerts_arrived_queue.qsize() >= total_successful_uploads:
|
if alerts_arrived_queue.qsize() >= total_successful_uploads:
|
||||||
all_arrived = True
|
all_arrived = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
time.sleep(0.001)
|
||||||
|
waited_for_inflight = time.time() - waiting_started
|
||||||
|
print(f"Waited a total {waited_for_inflight} seconds")
|
||||||
|
|
||||||
if not all_arrived:
|
if not all_arrived:
|
||||||
print("WARNING: Not all MQTT Messages arrived!")
|
print("WARNING: Not all MQTT Messages arrived!")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user