{"action":"created","comment":{"url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/comments/69449284","id":69449284,"diff_hunk":"@@ -12,8 +12,16 @@\n from liveprofiler import collector\n import uwsgidecorators\n \n-@uwsgidecorators.timer(2)\n-def collect(sig):\n-    log.info('Crontick from uwsgi timer, sig: {}'.format(sig))\n+def collect():\n     cfg = app.get_config(CONFIG)\n-    collector._collect(cfg['global']['dbpath'], cfg['collector']['hosts'], cfg['collector']['secret_header'])\n+    interval = int(cfg['collector'].get('interval', 60))\n+    dbpath = cfg['global']['dbpath']\n+    hosts = cfg['collector']['hosts']\n+    secret_header = cfg['collector']['secret_header']\n+\n+    @uwsgidecorators.timer(interval)","path":"liveprofiler/wsgi.py","position":19,"original_position":15,"commit_id":"08de51ad718b4c0371aeb7eac64faa41fa59e710","original_commit_id":"440414d23cc006de08965e8f5579db033f87b59f","user":{"login":"eddwardo","id":1431465,"avatar_url":"https://avatars.githubusercontent.com/u/1431465?v=3","gravatar_id":"","url":"https://api.github.com/users/eddwardo","html_url":"https://github.com/eddwardo","followers_url":"https://api.github.com/users/eddwardo/followers","following_url":"https://api.github.com/users/eddwardo/following{/other_user}","gists_url":"https://api.github.com/users/eddwardo/gists{/gist_id}","starred_url":"https://api.github.com/users/eddwardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddwardo/subscriptions","organizations_url":"https://api.github.com/users/eddwardo/orgs","repos_url":"https://api.github.com/users/eddwardo/repos","events_url":"https://api.github.com/users/eddwardo/events{/privacy}","received_events_url":"https://api.github.com/users/eddwardo/received_events","type":"User","site_admin":false},"body":"updated.","created_at":"2016-07-04T12:16:08Z","updated_at":"2016-07-04T12:16:08Z","html_url":"https://github.com/fieldaware/liveprofiler/pull/4#discussion_r69449284","pull_request_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/comments/69449284"},"html":{"href":"https://github.com/fieldaware/liveprofiler/pull/4#discussion_r69449284"},"pull_request":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4","id":76147377,"html_url":"https://github.com/fieldaware/liveprofiler/pull/4","diff_url":"https://github.com/fieldaware/liveprofiler/pull/4.diff","patch_url":"https://github.com/fieldaware/liveprofiler/pull/4.patch","issue_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/4","number":4,"state":"open","locked":false,"title":"Documentation and running visualizer under uwsgi.","user":{"login":"eddwardo","id":1431465,"avatar_url":"https://avatars.githubusercontent.com/u/1431465?v=3","gravatar_id":"","url":"https://api.github.com/users/eddwardo","html_url":"https://github.com/eddwardo","followers_url":"https://api.github.com/users/eddwardo/followers","following_url":"https://api.github.com/users/eddwardo/following{/other_user}","gists_url":"https://api.github.com/users/eddwardo/gists{/gist_id}","starred_url":"https://api.github.com/users/eddwardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddwardo/subscriptions","organizations_url":"https://api.github.com/users/eddwardo/orgs","repos_url":"https://api.github.com/users/eddwardo/repos","events_url":"https://api.github.com/users/eddwardo/events{/privacy}","received_events_url":"https://api.github.com/users/eddwardo/received_events","type":"User","site_admin":false},"body":"- [ ] @io41 ","created_at":"2016-07-04T11:06:46Z","updated_at":"2016-07-04T12:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e192f4478275c822b471226c4d926645ed9e210","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4/commits","review_comments_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4/comments","review_comment_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/4/comments","statuses_url":"https://api.github.com/repos/fieldaware/liveprofiler/statuses/08de51ad718b4c0371aeb7eac64faa41fa59e710","head":{"label":"fieldaware:piotr/uwsgi-integration","ref":"piotr/uwsgi-integration","sha":"08de51ad718b4c0371aeb7eac64faa41fa59e710","user":{"login":"fieldaware","id":1035282,"avatar_url":"https://avatars.githubusercontent.com/u/1035282?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldaware","html_url":"https://github.com/fieldaware","followers_url":"https://api.github.com/users/fieldaware/followers","following_url":"https://api.github.com/users/fieldaware/following{/other_user}","gists_url":"https://api.github.com/users/fieldaware/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldaware/subscriptions","organizations_url":"https://api.github.com/users/fieldaware/orgs","repos_url":"https://api.github.com/users/fieldaware/repos","events_url":"https://api.github.com/users/fieldaware/events{/privacy}","received_events_url":"https://api.github.com/users/fieldaware/received_events","type":"Organization","site_admin":false},"repo":{"id":60696719,"name":"liveprofiler","full_name":"fieldaware/liveprofiler","owner":{"login":"fieldaware","id":1035282,"avatar_url":"https://avatars.githubusercontent.com/u/1035282?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldaware","html_url":"https://github.com/fieldaware","followers_url":"https://api.github.com/users/fieldaware/followers","following_url":"https://api.github.com/users/fieldaware/following{/other_user}","gists_url":"https://api.github.com/users/fieldaware/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldaware/subscriptions","organizations_url":"https://api.github.com/users/fieldaware/orgs","repos_url":"https://api.github.com/users/fieldaware/repos","events_url":"https://api.github.com/users/fieldaware/events{/privacy}","received_events_url":"https://api.github.com/users/fieldaware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fieldaware/liveprofiler","description":"Server for collecting and visualizing samples from liveprofiler_sampler","fork":false,"url":"https://api.github.com/repos/fieldaware/liveprofiler","forks_url":"https://api.github.com/repos/fieldaware/liveprofiler/forks","keys_url":"https://api.github.com/repos/fieldaware/liveprofiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fieldaware/liveprofiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fieldaware/liveprofiler/teams","hooks_url":"https://api.github.com/repos/fieldaware/liveprofiler/hooks","issue_events_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/events{/number}","events_url":"https://api.github.com/repos/fieldaware/liveprofiler/events","assignees_url":"https://api.github.com/repos/fieldaware/liveprofiler/assignees{/user}","branches_url":"https://api.github.com/repos/fieldaware/liveprofiler/branches{/branch}","tags_url":"https://api.github.com/repos/fieldaware/liveprofiler/tags","blobs_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fieldaware/liveprofiler/statuses/{sha}","languages_url":"https://api.github.com/repos/fieldaware/liveprofiler/languages","stargazers_url":"https://api.github.com/repos/fieldaware/liveprofiler/stargazers","contributors_url":"https://api.github.com/repos/fieldaware/liveprofiler/contributors","subscribers_url":"https://api.github.com/repos/fieldaware/liveprofiler/subscribers","subscription_url":"https://api.github.com/repos/fieldaware/liveprofiler/subscription","commits_url":"https://api.github.com/repos/fieldaware/liveprofiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/fieldaware/liveprofiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/fieldaware/liveprofiler/contents/{+path}","compare_url":"https://api.github.com/repos/fieldaware/liveprofiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fieldaware/liveprofiler/merges","archive_url":"https://api.github.com/repos/fieldaware/liveprofiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fieldaware/liveprofiler/downloads","issues_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues{/number}","pulls_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls{/number}","milestones_url":"https://api.github.com/repos/fieldaware/liveprofiler/milestones{/number}","notifications_url":"https://api.github.com/repos/fieldaware/liveprofiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fieldaware/liveprofiler/labels{/name}","releases_url":"https://api.github.com/repos/fieldaware/liveprofiler/releases{/id}","deployments_url":"https://api.github.com/repos/fieldaware/liveprofiler/deployments","created_at":"2016-06-08T12:38:52Z","updated_at":"2016-06-27T16:29:42Z","pushed_at":"2016-07-04T12:03:49Z","git_url":"git://github.com/fieldaware/liveprofiler.git","ssh_url":"git@github.com:fieldaware/liveprofiler.git","clone_url":"https://github.com/fieldaware/liveprofiler.git","svn_url":"https://github.com/fieldaware/liveprofiler","homepage":"","size":208,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"fieldaware:master","ref":"master","sha":"9f4e96a5d1b2227c3186436d8c6595bb261032f7","user":{"login":"fieldaware","id":1035282,"avatar_url":"https://avatars.githubusercontent.com/u/1035282?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldaware","html_url":"https://github.com/fieldaware","followers_url":"https://api.github.com/users/fieldaware/followers","following_url":"https://api.github.com/users/fieldaware/following{/other_user}","gists_url":"https://api.github.com/users/fieldaware/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldaware/subscriptions","organizations_url":"https://api.github.com/users/fieldaware/orgs","repos_url":"https://api.github.com/users/fieldaware/repos","events_url":"https://api.github.com/users/fieldaware/events{/privacy}","received_events_url":"https://api.github.com/users/fieldaware/received_events","type":"Organization","site_admin":false},"repo":{"id":60696719,"name":"liveprofiler","full_name":"fieldaware/liveprofiler","owner":{"login":"fieldaware","id":1035282,"avatar_url":"https://avatars.githubusercontent.com/u/1035282?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldaware","html_url":"https://github.com/fieldaware","followers_url":"https://api.github.com/users/fieldaware/followers","following_url":"https://api.github.com/users/fieldaware/following{/other_user}","gists_url":"https://api.github.com/users/fieldaware/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldaware/subscriptions","organizations_url":"https://api.github.com/users/fieldaware/orgs","repos_url":"https://api.github.com/users/fieldaware/repos","events_url":"https://api.github.com/users/fieldaware/events{/privacy}","received_events_url":"https://api.github.com/users/fieldaware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fieldaware/liveprofiler","description":"Server for collecting and visualizing samples from liveprofiler_sampler","fork":false,"url":"https://api.github.com/repos/fieldaware/liveprofiler","forks_url":"https://api.github.com/repos/fieldaware/liveprofiler/forks","keys_url":"https://api.github.com/repos/fieldaware/liveprofiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fieldaware/liveprofiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fieldaware/liveprofiler/teams","hooks_url":"https://api.github.com/repos/fieldaware/liveprofiler/hooks","issue_events_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/events{/number}","events_url":"https://api.github.com/repos/fieldaware/liveprofiler/events","assignees_url":"https://api.github.com/repos/fieldaware/liveprofiler/assignees{/user}","branches_url":"https://api.github.com/repos/fieldaware/liveprofiler/branches{/branch}","tags_url":"https://api.github.com/repos/fieldaware/liveprofiler/tags","blobs_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fieldaware/liveprofiler/statuses/{sha}","languages_url":"https://api.github.com/repos/fieldaware/liveprofiler/languages","stargazers_url":"https://api.github.com/repos/fieldaware/liveprofiler/stargazers","contributors_url":"https://api.github.com/repos/fieldaware/liveprofiler/contributors","subscribers_url":"https://api.github.com/repos/fieldaware/liveprofiler/subscribers","subscription_url":"https://api.github.com/repos/fieldaware/liveprofiler/subscription","commits_url":"https://api.github.com/repos/fieldaware/liveprofiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/fieldaware/liveprofiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/fieldaware/liveprofiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/fieldaware/liveprofiler/contents/{+path}","compare_url":"https://api.github.com/repos/fieldaware/liveprofiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fieldaware/liveprofiler/merges","archive_url":"https://api.github.com/repos/fieldaware/liveprofiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fieldaware/liveprofiler/downloads","issues_url":"https://api.github.com/repos/fieldaware/liveprofiler/issues{/number}","pulls_url":"https://api.github.com/repos/fieldaware/liveprofiler/pulls{/number}","milestones_url":"https://api.github.com/repos/fieldaware/liveprofiler/milestones{/number}","notifications_url":"https://api.github.com/repos/fieldaware/liveprofiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fieldaware/liveprofiler/labels{/name}","releases_url":"https://api.github.com/repos/fieldaware/liveprofiler/releases{/id}","deployments_url":"https://api.github.com/repos/fieldaware/liveprofiler/deployments","created_at":"2016-06-08T12:38:52Z","updated_at":"2016-06-27T16:29:42Z","pushed_at":"2016-07-04T12:03:49Z","git_url":"git://github.com/fieldaware/liveprofiler.git","ssh_url":"git@github.com:fieldaware/liveprofiler.git","clone_url":"https://github.com/fieldaware/liveprofiler.git","svn_url":"https://github.com/fieldaware/liveprofiler","homepage":"","size":208,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4"},"html":{"href":"https://github.com/fieldaware/liveprofiler/pull/4"},"issue":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/issues/4"},"comments":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/fieldaware/liveprofiler/statuses/08de51ad718b4c0371aeb7eac64faa41fa59e710"}}}}
{"actor":{"display_login":"eddwardo"}}