fixed typo in time.Since function

This commit is contained in:
Mr. Joja 2017-10-24 23:51:11 -06:00
parent c173987d7b
commit dd6cf4ba76
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ func (c *Connection) runClient() error {
return nil
}
fmt.Println("\nFile sent.")
fmt.Printf("\nTransfered with an average speed of %s/s", humanize.Bytes(uint64(c.File.Size/time.since(startTime))))
fmt.Printf("\nTransfered with an average speed of %s/s", humanize.Bytes(uint64(c.File.Size/time.Since(startTime))))
} else { // Is a Receiver
if responses.notPresent {
fmt.Println("Sender is not ready. Use -wait to wait until sender connects.")
@ -468,7 +468,7 @@ func (c *Connection) runClient() error {
fmt.Printf("\nReceived file written to %s\n", path.Join(c.Path, c.File.Name))
}
fmt.Printf("\nTransfered with an average speed of %s/s", humanize.Bytes(uint64(c.File.Size/time.since(startTime))))
fmt.Printf("\nTransfered with an average speed of %s/s", humanize.Bytes(uint64(c.File.Size/time.Since(startTime))))
}
return nil
}