{"action":"created","issue":{"url":"https://api.github.com/repos/collectd/collectd/issues/1040","labels_url":"https://api.github.com/repos/collectd/collectd/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/collectd/collectd/issues/1040/comments","events_url":"https://api.github.com/repos/collectd/collectd/issues/1040/events","html_url":"https://github.com/collectd/collectd/pull/1040","id":79505022,"number":1040,"title":"Normalize interval","user":{"login":"manuelluis","id":797780,"avatar_url":"https://avatars.githubusercontent.com/u/797780?v=3","gravatar_id":"","url":"https://api.github.com/users/manuelluis","html_url":"https://github.com/manuelluis","followers_url":"https://api.github.com/users/manuelluis/followers","following_url":"https://api.github.com/users/manuelluis/following{/other_user}","gists_url":"https://api.github.com/users/manuelluis/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelluis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelluis/subscriptions","organizations_url":"https://api.github.com/users/manuelluis/orgs","repos_url":"https://api.github.com/users/manuelluis/repos","events_url":"https://api.github.com/users/manuelluis/events{/privacy}","received_events_url":"https://api.github.com/users/manuelluis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T15:51:23Z","updated_at":"2015-05-22T19:08:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/collectd/collectd/pulls/1040","html_url":"https://github.com/collectd/collectd/pull/1040","diff_url":"https://github.com/collectd/collectd/pull/1040.diff","patch_url":"https://github.com/collectd/collectd/pull/1040.patch"},"body":"For example if you are counting the number of orders per minute you can get some strange number when you store the data in rrd, for example 6.5 orders  in the last minute ¿?\r\n\r\nThe rrdtool do a normalization of the data if the time are not normalize with the interval. This is explained here:\r\n\r\nhttp://www.vandenbogaerdt.nl/rrdtool/process.php\r\n\r\nWith this patch you execute the plugins in a time that is multiple of the interval, for example with a ``Interval`` of ``10`` if the plugin will read at ``1432308122.088`` the patch change this to  ``1432308130.000``."},"comment":{"url":"https://api.github.com/repos/collectd/collectd/issues/comments/104745442","html_url":"https://github.com/collectd/collectd/pull/1040#issuecomment-104745442","issue_url":"https://api.github.com/repos/collectd/collectd/issues/1040","id":104745442,"user":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T19:08:50Z","updated_at":"2015-05-22T19:08:50Z","body":"Hi Manuel, thanks for your patch! One problem I'm seeing with this approach is that many plugins leave the time and interval set to zero, letting `plugin_value_list_clone()` (called via `plugin_dispatch_values()`) fill in the current time.\r\n\r\nWhat do you think about adding this feature to the *rrdtool* plugin? I don't know how many other systems use fixed time periods, like RRDtool, so maybe this would be the best approach. What do you think?\r\n\r\n—octo"}}