Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
check_send_receive_time: Use time.perf_counter() for duration timing.
Alex Vandivercf24d2c25e78
diff --git a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_timeindex 0562853bc4c..e7c6a1cc4ba 100755--- a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time+++ b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time@@ -125,7 +125,7 @@ try:except Exception:report("CRITICAL", msg=f"Error subscribing to Zulips:\n{traceback.format_exc()}")msg_to_send = str(random.getrandbits(64))-time_start = time.time()+time_start = time.perf_counter()send_zulip(zulip_sender,@@ -141,7 +141,7 @@ msg_content: List[str] = []while msg_to_send not in msg_content:messages = get_zulips()- seconds_diff = time.time() - time_start+ seconds_diff = time.perf_counter() - time_startmsg_content = [m["content"] for m in messages]