From 15ed1bbd6977a85e29045fce8c972a0e6579b077 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 7 Feb 2018 13:57:50 +1100 Subject: [PATCH] Remove uploadChunksPosted expvar Use messageTypesPosted.Piece --- connection.go | 1 - global.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/connection.go b/connection.go index bf06a975..b68bed7f 100644 --- a/connection.go +++ b/connection.go @@ -1431,7 +1431,6 @@ func (c *connection) sendChunk(r request, msg func(pp.Message) bool) (more bool, Begin: r.Begin, Piece: b, }) - uploadChunksPosted.Add(1) c.lastChunkSent = time.Now() return } diff --git a/global.go b/global.go index 9855f8ac..cab31208 100644 --- a/global.go +++ b/global.go @@ -31,8 +31,6 @@ var ( peersAddedBySource = expvar.NewMap("peersAddedBySource") - uploadChunksPosted = expvar.NewInt("uploadChunksPosted") - pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect") pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect") -- 2.50.0