Simplify recoveryTime computation 69/82469/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Jun 2019 22:44:58 +0000 (00:44 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 11 Jun 2019 15:07:01 +0000 (15:07 +0000)
commita2757f50df14d8e60879e6d7a567512aa74374f2
treeae676f9977a39f58bb53e1508271dd720fd53e8e
parent6bff404a8efbc235b1ddcfba6643cb2e855eb6aa
Simplify recoveryTime computation

Stopwatch.stop() returns self, take advantage of that to shorted
the code to compute the formatting string. Also drop toString()
call, as it is implied by string concat.

Change-Id: I4fa645e42fc38b5f9f0775d986fd17aa693725b1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 49f3024ee0a621729e31279f8b2d46051fc003f1)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoverySupport.java