From 64c3d5d138cc0254f3f7daec3e78c6ae6219bab1 Mon Sep 17 00:00:00 2001 From: sunboquan Date: Mon, 21 Aug 2023 21:30:31 +0800 Subject: [PATCH] bugfix synchronization ratio --- profiler/cluster_analyse/analysis/communication_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/cluster_analyse/analysis/communication_analysis.py b/profiler/cluster_analyse/analysis/communication_analysis.py index 19f2bf7d5..bc953c4d7 100644 --- a/profiler/cluster_analyse/analysis/communication_analysis.py +++ b/profiler/cluster_analyse/analysis/communication_analysis.py @@ -117,7 +117,7 @@ class CommunicationAnalysis: total_time_info_dict[Constant.SYNCHRONIZATION_TIME_RATIO] = 0 else: total_time_info_dict[Constant.SYNCHRONIZATION_TIME_RATIO] = \ - round(total_time_info_dict[Constant.WAIT_TIME_MS] / + round(total_time_info_dict[Constant.SYNCHRONIZATION_TIME_MS] / (total_time_info_dict[Constant.SYNCHRONIZATION_TIME_MS] + total_time_info_dict[Constant.TRANSIT_TIME_MS]), 4) -- Gitee