mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-11-21 17:52:21 +00:00
Statistician
- Added a method to find average content lookup route length
This commit is contained in:
parent
b90a87b149
commit
67f6a0fe07
@ -115,4 +115,9 @@ public class Statistician
|
||||
{
|
||||
return this.totalContentLookupTime / this.numContentLookups;
|
||||
}
|
||||
|
||||
public double averageContentLookupRouteLength()
|
||||
{
|
||||
return (double) ((double) this.totalRouteLength / (double) this.numContentLookups);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user