From 1ff0fb8284e2d3932304e46d47509dab1ed302c3 Mon Sep 17 00:00:00 2001 From: Joshua Kissoon Date: Thu, 8 May 2014 00:14:57 +0530 Subject: [PATCH] Statistician - Setup the bootstrap time to be in milliseconds instead of nanoseconds --- src/kademlia/KadStatistician.java | 2 +- src/kademlia/Statistician.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kademlia/KadStatistician.java b/src/kademlia/KadStatistician.java index 8fe9a0c..f52da30 100644 --- a/src/kademlia/KadStatistician.java +++ b/src/kademlia/KadStatistician.java @@ -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(); diff --git a/src/kademlia/Statistician.java b/src/kademlia/Statistician.java index 5d1259d..e04d883 100644 --- a/src/kademlia/Statistician.java +++ b/src/kademlia/Statistician.java @@ -70,7 +70,7 @@ public class Statistician implements KadStatistician @Override public long getBootstrapTime() { - return this.bootstrapTime; + return this.bootstrapTime / 1000000L; } @Override