X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fccn_emu_live%2Fdce.py;fp=examples%2Fccn_emu_live%2Fdce.py;h=326a33b0a446eb9c5966a507b413578b5db911d3;hb=b4af9a40867beff8660612fe20d3838cb375f159;hp=b996ea473bd6a6c4b92f17bb221f262d4b159288;hpb=b3292d8429f07d0e9d21a3ec2d81dbc4b18332d1;p=nepi.git diff --git a/examples/ccn_emu_live/dce.py b/examples/ccn_emu_live/dce.py index b996ea47..326a33b0 100644 --- a/examples/ccn_emu_live/dce.py +++ b/examples/ccn_emu_live/dce.py @@ -162,7 +162,7 @@ def avg_interests(ec, run): ### Compute metric: Avg number of Interests seen per content name ### normalized by the number of nodes in the shortest path - content_name_count = len(list(content_names.values())) + content_name_count = len(content_names) nodes_in_shortest_path = len(shortest_path) - 1 metric = interest_count / (float(content_name_count) * float(nodes_in_shortest_path))