mirror of
https://github.com/PeernetOfficial/Cmd.git
synced 2026-07-17 02:47:52 +01:00
print UDT metrics on file transfer
This commit is contained in:
@@ -141,6 +141,10 @@ func transferCompareFile(peer *core.PeerInfo, fileHash []byte, output io.Writer)
|
||||
}
|
||||
|
||||
fmt.Fprintf(output, "Finished reading total of %d bytes. Expected %d bytes.\n", totalRead, fileSize)
|
||||
|
||||
fmt.Println("---------------------- UDT Stats -------------------------------")
|
||||
// Print UDT metrics
|
||||
udtConn.PrintMetrics()
|
||||
}
|
||||
|
||||
func translateTerminateReason(reason int) string {
|
||||
|
||||
Reference in New Issue
Block a user