Update dial expvars

This commit is contained in:
Matt Joiner 2018-06-15 14:30:31 +10:00
parent c9187bf736
commit fd0fb0051b
2 changed files with 2 additions and 5 deletions

View File

@ -443,9 +443,9 @@ type dialResult struct {
func countDialResult(err error) { func countDialResult(err error) {
if err == nil { if err == nil {
successfulDials.Add(1) torrent.Add("successful dials", 1)
} else { } else {
unsuccessfulDials.Add(1) torrent.Add("unsuccessful dials", 1)
} }
} }

View File

@ -34,9 +34,6 @@ var (
pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect") pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect")
pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect") pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")
unsuccessfulDials = expvar.NewInt("dialSuccessful")
successfulDials = expvar.NewInt("dialUnsuccessful")
peerExtensions = expvar.NewMap("peerExtensions") peerExtensions = expvar.NewMap("peerExtensions")
completedHandshakeConnectionFlags = expvar.NewMap("completedHandshakeConnectionFlags") completedHandshakeConnectionFlags = expvar.NewMap("completedHandshakeConnectionFlags")
// Count of connections to peer with same client ID. // Count of connections to peer with same client ID.