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

Issue in time unit casting #4

Open
LouisaSearch opened this issue Sep 18, 2017 · 0 comments
Open

Issue in time unit casting #4

LouisaSearch opened this issue Sep 18, 2017 · 0 comments

Comments

@LouisaSearch
Copy link

In source medida/src/meter.cc:

There is a casting error here:
static const auto kTickInterval = Clock::duration(std::chrono::seconds(5)).count();

It will cause a long delay when the system is idle for a while

should be:
static const auto kTickInterval = std::chrono::duration_caststd::chrono::nanoseconds(Clock::duration(std::chrono::seconds(5))).count();

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

No branches or pull requests

1 participant