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

Fix to use time.to_i for checking when chunks should be flushed #964

Merged
merged 1 commit into from
May 18, 2016

Conversation

tagomoris
Copy link
Member

I commented in code comment why this change is needed.

@tagomoris
Copy link
Member Author

This change fixes the problem commented in #928 .
before:

2016-05-18 11:50:11 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 11:50:12 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:13 +0900 fluentd.traffic: {"test_count":600,"test_count_rate":600.0}
2016-05-18 11:50:14 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:15 +0900 fluentd.traffic: {"test_count":570,"test_count_rate":570.0}
2016-05-18 11:50:16 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:17 +0900 fluentd.traffic: {"test_count":600,"test_count_rate":600.0}
2016-05-18 11:50:18 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:19 +0900 fluentd.traffic: {"test_count":570,"test_count_rate":570.0}
2016-05-18 11:50:20 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:21 +0900 fluentd.traffic: {"test_count":570,"test_count_rate":570.0}
2016-05-18 11:50:22 +0900 fluentd.traffic: {"test_count":0,"test_count_rate":0.0}
2016-05-18 11:50:23 +0900 fluentd.traffic: {"test_count":720,"test_count_rate":720.0}

After:

2016-05-18 12:01:14 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 12:01:15 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 12:01:16 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 12:01:17 +0900 fluentd.traffic: {"test_count":270,"test_count_rate":270.0}
2016-05-18 12:01:18 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 12:01:19 +0900 fluentd.traffic: {"test_count":300,"test_count_rate":300.0}
2016-05-18 12:01:20 +0900 fluentd.traffic: {"test_count":210,"test_count_rate":210.0}
2016-05-18 12:01:21 +0900 fluentd.traffic: {"test_count":90,"test_count_rate":90.0}

@tagomoris tagomoris merged commit b35bfc5 into master May 18, 2016
@tagomoris tagomoris deleted the fix-flush-timing-issue branch June 2, 2016 09:13
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.

1 participant