-
Notifications
You must be signed in to change notification settings - Fork 19
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
Provide the highest and lowest values at the end of the report. #77
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. This is interesting in some scenarios, like setting a target using only one protocol. So we need to add a new option to the CLI to enable this.
@@ -1,4 +1,3 @@ | |||
// Package main implements a simple CLI to use the library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please re-add this comment, the linter requires a comment for each package.
@@ -35,18 +35,24 @@ const ( | |||
func main() { | |||
ctx, cancel := context.WithCancel(context.Background()) | |||
defer cancel() | |||
// Only used for debugging. | |||
|
|||
// Logging setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove all blank likes and comments you added. They are redundant and we do not use empty lines inside functions.
if opts.NoColor { | ||
color.NoColor = true | ||
} | ||
// To wait for termination signals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old comment is more informative.
|
||
// Variables to track highest and lowest response times | ||
var maxTime, minTime time.Duration | ||
firstReport := true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this var. Just check if both values are zero.
It would be great if this could be provided as a real-time update. If I were able to make it work, I’ll create another pull request, but for now, this was a useful feature for me.