-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
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
result.ContentTransfer freezed value since update Go1.8 #13
Comments
FYI i have tested in the example "_example" by adding:
i have the same issue. But no issue with |
For the moment i have fixed the issue like that: `func (r *Result) ContentTransfer(t time.Time) time.Duration { // Total returns the duration of total http request. But i'm sure it's not the best way :) because the "t" is useless and i need to run result.End(end) before. |
On yanc0/beeping we locked this package on commit [[dependencies]]
name = "github.com/tcnksm/go-httpstat"
revision = "fae40520f4ba0a112874d1f0deb9498ebb2198cb" |
Also facing this issue. Its constantly returning Printing out |
Up :) |
I was googling for The root of the problem is: time difference is calculated against zero value of The value for this constant is exactly |
Yes, looks like the variables t0-t4 are no longer populated but they are still used by ContentTransfer and Total methods, resulting the duration since zero time. |
I also found this issue when using Probably adding a new release with the corresponding bump in the semver would fix this for other dep users? |
Same problem here. Fixed at some older revision for now. |
Upstream bug tcnksm/go-httpstat#13 Closes-bug Mirantis#32
using |
Yep this worked for me. I'm using go v1.17 |
before it was printing the same huge number for all requests, see tcnksm/go-httpstat#13 (comment)
before it was printing the same huge number for all requests, see tcnksm/go-httpstat#13 (comment)
Hello,
Thanks again for the update in 1.8
I have a small issue since the update. I'm not sure it's linked to the update, but i don't understand.
i always have the same fix value for ContentTransfert:
with:
The result is always:
result.ContentTransfer(end) 2562047h47m16.854775807s
Thanks for your help,
Benoît
The text was updated successfully, but these errors were encountered: