Skip to content

Commit

Permalink
Merge pull request #19 from adomokos/ad-fix-transfer
Browse files Browse the repository at this point in the history
Fix typo, 'trasfer' should be 'transfer'
  • Loading branch information
tcnksm committed Oct 8, 2019
2 parents 6962beb + c914cd8 commit e866bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions go18.go
Expand Up @@ -12,16 +12,16 @@ import (
// End sets the time when reading response is done.
// This must be called after reading response body.
func (r *Result) End(t time.Time) {
r.trasferDone = t
r.transferDone = t

// This means result is empty (it does nothing).
// Skip setting value(contentTransfer and total will be zero).
if r.dnsStart.IsZero() {
return
}

r.contentTransfer = r.trasferDone.Sub(r.transferStart)
r.total = r.trasferDone.Sub(r.dnsStart)
r.contentTransfer = r.transferDone.Sub(r.transferStart)
r.total = r.transferDone.Sub(r.dnsStart)
}

// ContentTransfer returns the duration of content transfer time.
Expand Down
2 changes: 1 addition & 1 deletion httpstat.go
Expand Up @@ -43,7 +43,7 @@ type Result struct {
serverStart time.Time
serverDone time.Time
transferStart time.Time
trasferDone time.Time // need to be provided from outside
transferDone time.Time // need to be provided from outside

// isTLS is true when connection seems to use TLS
isTLS bool
Expand Down

0 comments on commit e866bb2

Please sign in to comment.