Skip to content

Commit 343c5f6

Browse files
committed
optimize log method of PeerConnection
1 parent 6706d83 commit 343c5f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/src/main/java/org/tron/core/net/peer/PeerConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public String log() {
226226
(now - channel.getStartTime()) / Constant.ONE_THOUSAND,
227227
channel.getAvgLatency(),
228228
fastForwardBlock != null ? fastForwardBlock.getNum() : String.format("%d [%ds]",
229-
blockBothHave.getNum(), (System.currentTimeMillis() - blockBothHaveUpdateTime) / 1000),
229+
blockBothHave.getNum(), (now - blockBothHaveUpdateTime) / Constant.ONE_THOUSAND),
230230
isNeedSyncFromPeer(),
231231
isNeedSyncFromUs(),
232232
syncBlockToFetch.size(),

0 commit comments

Comments
 (0)