Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Make the duration longer in order to export the stats #778

Closed

Conversation

peiqinzhao
Copy link
Contributor

Make the duration longer in order to export the stats by printing it out. The previous branch is contaminated that I delete it directly.

@peiqinzhao peiqinzhao requested review from rakyll and songy23 June 5, 2018 20:00
@@ -74,7 +74,7 @@ func main() {
// Wait for a duration longer than reporting duration to ensure the stats
// library reports the collected data.
fmt.Println("Wait longer than the reporting duration...")
time.Sleep(2 * time.Second)
time.Sleep(10 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we instead make the reporting period shorter? It is not nice for a user to wait for 10 seconds on an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sounds to be a better way. I would have a try.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM. We can re-store to the previous reporting period once #773 is resolved.

@peiqinzhao peiqinzhao closed this Jun 8, 2018
@peiqinzhao peiqinzhao deleted the updateHelloWorld branch June 8, 2018 22:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants