blind review on list-operations added by 2to3:
[nepi.git] / examples / ccn_emu_live / dce.py
index b996ea4..326a33b 100644 (file)
@@ -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))