We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After sending or receiving file, print out the rate of transfer in MB/s.
Basically, first there needs to be a timer here (e.g. start:= time.Now()) : https://github.com/schollz/croc/blob/master/connect.go#L214
start:= time.Now()
For receiving the file, you should print out the speed here: https://github.com/schollz/croc/blob/master/connect.go#L468
For sending the file, you should print out the speed here: https://github.com/schollz/croc/blob/master/connect.go#L409
In both cases, the speed is the file size (c.File.Size) divided by the duration (e.g. time.Since(start)), preferably in MB/s.
c.File.Size
time.Since(start)
Please feel free to ask me any questions!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After sending or receiving file, print out the rate of transfer in MB/s.
Basically, first there needs to be a timer here (e.g.
start:= time.Now()
) : https://github.com/schollz/croc/blob/master/connect.go#L214For receiving the file, you should print out the speed here: https://github.com/schollz/croc/blob/master/connect.go#L468
For sending the file, you should print out the speed here: https://github.com/schollz/croc/blob/master/connect.go#L409
In both cases, the speed is the file size (
c.File.Size
) divided by the duration (e.g.time.Since(start)
), preferably in MB/s.Please feel free to ask me any questions!
The text was updated successfully, but these errors were encountered: