mirror of
https://github.com/ChronosX88/KademliaDHT.git
synced 2024-11-24 19:22:18 +00:00
Statistician
- Setup the bootstrap time to be in milliseconds instead of nanoseconds
This commit is contained in:
parent
32a6d7875b
commit
1ff0fb8284
@ -43,7 +43,7 @@ public interface KadStatistician
|
||||
public void setBootstrapTime(long time);
|
||||
|
||||
/**
|
||||
* @return How long the system took to bootstrap
|
||||
* @return How long the system took to bootstrap in milliseconds
|
||||
*/
|
||||
public long getBootstrapTime();
|
||||
|
||||
|
@ -70,7 +70,7 @@ public class Statistician implements KadStatistician
|
||||
@Override
|
||||
public long getBootstrapTime()
|
||||
{
|
||||
return this.bootstrapTime;
|
||||
return this.bootstrapTime / 1000000L;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user