Update dial expvars
This commit is contained in:
parent
c9187bf736
commit
fd0fb0051b
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue