Skip to content

Provide the highest and lowest values at the end of the report. - #77

Open
mehdinourollah wants to merge 1 commit into
jesusprubio:mainfrom
mehdinourollah:main
Open

mehdinourollah wants to merge 1 commit into
jesusprubio:mainfrom
mehdinourollah:main

Conversation

@mehdinourollah

Copy link
Copy Markdown

It would be great if this could be provided as a real-time update. If I were able to make it work, I鈥檒l create another pull request, but for now, this was a useful feature for me.

@jesusprubio jesusprubio left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread main.go
@@ -1,4 +1,3 @@
// Package main implements a simple CLI to use the library.

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

Comment thread main.go
defer cancel()
// Only used for debugging.

// Logging setup

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

Comment thread main.go
if opts.NoColor {
color.NoColor = true
}
// To wait for termination signals.

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

Comment thread main.go

// Variables to track highest and lowest response times
var maxTime, minTime time.Duration
firstReport := true

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