Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Measure follower activity in nanoseconds
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
FollowerLogInformation.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
index 9fd2edcb0e1d2dda3ad8e32c2ed6c6cfdca2ee8e..3952b386b2498a6e2fecf56d6f5a1cb3f4dda8fc 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/FollowerLogInformation.java
@@
-215,10
+215,10
@@
public final class FollowerLogInformation {
/**
* Returns the time since the last activity occurred for the follower.
*
/**
* Returns the time since the last activity occurred for the follower.
*
- * @return time in
milli
seconds since the last activity from the follower.
+ * @return time in
nano
seconds since the last activity from the follower.
*/
*/
- public long
time
SinceLastActivity() {
- return stopwatch.elapsed(TimeUnit.
MILLI
SECONDS);
+ public long
nanos
SinceLastActivity() {
+ return stopwatch.elapsed(TimeUnit.
NANO
SECONDS);
}
/**
}
/**