Skip to content

Commit

Permalink
log reliability based on loss statistics
Browse files Browse the repository at this point in the history
Signed-off-by: Csaba Kiraly <[email protected]>
  • Loading branch information
cskiraly committed Oct 15, 2024
1 parent fee5a9c commit 1a344f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codexdht/private/eth/p2p/discoveryv5/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,8 @@ proc debugPrintLoop(d: Protocol) {.async.} =
debug "bucket", depth = b.getDepth,
len = b.nodes.len, standby = b.replacementLen
for n in b.nodes:
debug "node", n, rttMin = n.stats.rttMin.int, rttAvg = n.stats.rttAvg.int
debug "node", n, rttMin = n.stats.rttMin.int, rttAvg = n.stats.rttAvg.int,
reliability = n.seen.round(3)
# bandwidth estimates are based on limited information, so not logging it yet to avoid confusion
# trace "node", n, bwMaxMbps = (n.stats.bwMax / 1e6).round(3), bwAvgMbps = (n.stats.bwAvg / 1e6).round(3)

Expand Down

0 comments on commit 1a344f1

Please sign in to comment.