X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fccn_emu_live%2Fplanetlab.py;fp=examples%2Fccn_emu_live%2Fplanetlab.py;h=643f33ca5493a717a3a60d44fc6b8db518d18c1c;hb=b4af9a40867beff8660612fe20d3838cb375f159;hp=4c8a4a3d7f7d8d545e5b47eaf18ec2a77a5f68e2;hpb=b3292d8429f07d0e9d21a3ec2d81dbc4b18332d1;p=nepi.git diff --git a/examples/ccn_emu_live/planetlab.py b/examples/ccn_emu_live/planetlab.py index 4c8a4a3d..643f33ca 100644 --- a/examples/ccn_emu_live/planetlab.py +++ b/examples/ccn_emu_live/planetlab.py @@ -166,7 +166,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))