mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-12-23 00:01:46 +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