print UDT metrics on file transfer

This commit is contained in:
2022-02-25 15:28:54 +04:00
parent eff8327a74
commit 03d8637865

View File

@@ -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 {