Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mehdinourollah
Copy link

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.

Copy link
Owner

@jesusprubio jesusprubio left a 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.
Copy link
Owner

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
Copy link
Owner

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.
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants