diff --git a/src/kademlia/Statistician.java b/src/kademlia/Statistician.java index 2875d7b..ed270ae 100644 --- a/src/kademlia/Statistician.java +++ b/src/kademlia/Statistician.java @@ -115,4 +115,9 @@ public class Statistician { return this.totalContentLookupTime / this.numContentLookups; } + + public double averageContentLookupRouteLength() + { + return (double) ((double) this.totalRouteLength / (double) this.numContentLookups); + } }