Simplify recoveryTime computation 58/82458/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Jun 2019 22:44:58 +0000 (00:44 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 9 Jun 2019 21:56:14 +0000 (21:56 +0000)
commit49f3024ee0a621729e31279f8b2d46051fc003f1
tree5c1def0a106adfeffa551285677078f9ed91c3a2
parent01d87e48543865be3d802c6b5497191623b0ae37
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>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoverySupport.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.