Skip to content

Commit 756d31a

Browse files
Update src/main/scala/io/iohk/ethereum/network/PeerManagerActor.scala
Co-authored-by: Enrique Rodríguez <[email protected]>
1 parent d6a0d76 commit 756d31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/io/iohk/ethereum/network/PeerManagerActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ object PeerManagerActor {
542542
val maybeAgeSeconds = stat.firstSeenTimeMillis
543543
.map(currentTimeMillis - _)
544544
.map(_ * 1000)
545-
.filterNot(_ <= 0)
545+
.filter(_ > 0)
546546

547547
// Use the average number of responses per second over the lifetime of the connection
548548
// as an indicator of how fruitful the peer is for us.

0 commit comments

Comments
 (0)