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

SYNC_INTERVAL greater than 32768 milliseconds fails #3

Open
mstember opened this issue Mar 28, 2016 · 0 comments
Open

SYNC_INTERVAL greater than 32768 milliseconds fails #3

mstember opened this issue Mar 28, 2016 · 0 comments

Comments

@mstember
Copy link

Set LOG_INTERVAL to 30000 (30 seconds).
Set SYNC_INTERVAL to 6*LOG_INTERVAL (3 minutes).
The log will never be flushed.

This can be fixed by changing
"#define LOG_INTERVAL 30000" to "uint32_t LOG_INTERVAL = 30000"
and
"#define SYNC_INTERVAL 6*LOG_INTERVAL" to "uint32_t SYNC_INTERVAL = 6 * LOG_INTERVAL".

Logging can be deferred up to 44 days which is ridiculously long so shouldn't cause a problem.

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