From 35612738b2ffc5eec896ad10de990db965823b63 Mon Sep 17 00:00:00 2001 From: 0xFugue <119708655+0xFugue@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:33:52 +0530 Subject: [PATCH] one off fix; complete tree --- scripts/analysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/analysis.py b/scripts/analysis.py index ef4c768..4594cc8 100644 --- a/scripts/analysis.py +++ b/scripts/analysis.py @@ -113,7 +113,8 @@ def compute_view_times(path, oprefix, otype): continue if simtype == "tree": num_nodes = conf["node_count"] - max_depth = math.ceil(math.log(conf["overlay_settings"]["number_of_committees"], 2)) + #ceil((lg(N+1) - 1)) + max_depth = math.ceil(math.log(conf["overlay_settings"]["number_of_committees"]+1, 2)-1) else: num_tree_nodes = 2 ** (conf["overlay_settings"]["branch_depth"]) - 1 num_committees = int (conf["node_count"]/conf["overlay_settings"]["branch_depth"])