{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/hive_mind/pulls/comments/68060087","id":68060087,"diff_hunk":"@@ -9,13 +9,13 @@ load_graph = function(svg_class, dataset, width, height) {\n     .enter()\n     .append('rect')\n     .attr('x', function(d,i) {return i * bar_width })\n-    .attr('y', function(d) { return height - d*height })\n+    .attr('y', function(d) { return height - d*height/cpu_count })\n     .attr('width', bar_width)\n-    .attr('height', function(d) {return d*height})\n+    .attr('height', function(d) {return d*height/cpu_count})\n     .attr('fill', function(d) {\n-      if (d>=1.5) {\n+      if (d/cpu_count>=1.5) {","path":"hive_mind_hive/app/assets/javascripts/hive_mind_hive/load_graph.js","position":17,"original_position":17,"commit_id":"dfc6f48759d7228af60eff0773cb97fff632a99e","original_commit_id":"dfc6f48759d7228af60eff0773cb97fff632a99e","user":{"login":"jonpwilson","id":6515084,"avatar_url":"https://avatars.githubusercontent.com/u/6515084?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpwilson","html_url":"https://github.com/jonpwilson","followers_url":"https://api.github.com/users/jonpwilson/followers","following_url":"https://api.github.com/users/jonpwilson/following{/other_user}","gists_url":"https://api.github.com/users/jonpwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpwilson/subscriptions","organizations_url":"https://api.github.com/users/jonpwilson/orgs","repos_url":"https://api.github.com/users/jonpwilson/repos","events_url":"https://api.github.com/users/jonpwilson/events{/privacy}","received_events_url":"https://api.github.com/users/jonpwilson/received_events","type":"User","site_admin":false},"body":"Could we have the 1.5 and 0.7 as config items? Given they're arbitrary values it should be easy to change them","created_at":"2016-06-22T14:13:31Z","updated_at":"2016-06-22T14:13:31Z","html_url":"https://github.com/bbc/hive_mind/pull/154#discussion_r68060087","pull_request_url":"https://api.github.com/repos/bbc/hive_mind/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/comments/68060087"},"html":{"href":"https://github.com/bbc/hive_mind/pull/154#discussion_r68060087"},"pull_request":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/hive_mind/pulls/154","id":74783365,"html_url":"https://github.com/bbc/hive_mind/pull/154","diff_url":"https://github.com/bbc/hive_mind/pull/154.diff","patch_url":"https://github.com/bbc/hive_mind/pull/154.patch","issue_url":"https://api.github.com/repos/bbc/hive_mind/issues/154","number":154,"state":"open","locked":false,"title":"Set load average thresholds based on cpu count","user":{"login":"jrmhaig","id":4415912,"avatar_url":"https://avatars.githubusercontent.com/u/4415912?v=3","gravatar_id":"","url":"https://api.github.com/users/jrmhaig","html_url":"https://github.com/jrmhaig","followers_url":"https://api.github.com/users/jrmhaig/followers","following_url":"https://api.github.com/users/jrmhaig/following{/other_user}","gists_url":"https://api.github.com/users/jrmhaig/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmhaig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmhaig/subscriptions","organizations_url":"https://api.github.com/users/jrmhaig/orgs","repos_url":"https://api.github.com/users/jrmhaig/repos","events_url":"https://api.github.com/users/jrmhaig/events{/privacy}","received_events_url":"https://api.github.com/users/jrmhaig/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-22T13:26:10Z","updated_at":"2016-06-22T14:13:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd6ef9dd5adfcacad05b3bf8940f72aebc9d9169","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbc/hive_mind/pulls/154/commits","review_comments_url":"https://api.github.com/repos/bbc/hive_mind/pulls/154/comments","review_comment_url":"https://api.github.com/repos/bbc/hive_mind/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/hive_mind/issues/154/comments","statuses_url":"https://api.github.com/repos/bbc/hive_mind/statuses/dfc6f48759d7228af60eff0773cb97fff632a99e","head":{"label":"bbc:stats","ref":"stats","sha":"dfc6f48759d7228af60eff0773cb97fff632a99e","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":44803669,"name":"hive_mind","full_name":"bbc/hive_mind","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/hive_mind","description":"Device management service for the Hive","fork":false,"url":"https://api.github.com/repos/bbc/hive_mind","forks_url":"https://api.github.com/repos/bbc/hive_mind/forks","keys_url":"https://api.github.com/repos/bbc/hive_mind/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/hive_mind/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/hive_mind/teams","hooks_url":"https://api.github.com/repos/bbc/hive_mind/hooks","issue_events_url":"https://api.github.com/repos/bbc/hive_mind/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/hive_mind/events","assignees_url":"https://api.github.com/repos/bbc/hive_mind/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/hive_mind/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/hive_mind/tags","blobs_url":"https://api.github.com/repos/bbc/hive_mind/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/hive_mind/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/hive_mind/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/hive_mind/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/hive_mind/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/hive_mind/languages","stargazers_url":"https://api.github.com/repos/bbc/hive_mind/stargazers","contributors_url":"https://api.github.com/repos/bbc/hive_mind/contributors","subscribers_url":"https://api.github.com/repos/bbc/hive_mind/subscribers","subscription_url":"https://api.github.com/repos/bbc/hive_mind/subscription","commits_url":"https://api.github.com/repos/bbc/hive_mind/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/hive_mind/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/hive_mind/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/hive_mind/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/hive_mind/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/hive_mind/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/hive_mind/merges","archive_url":"https://api.github.com/repos/bbc/hive_mind/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/hive_mind/downloads","issues_url":"https://api.github.com/repos/bbc/hive_mind/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/hive_mind/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/hive_mind/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/hive_mind/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/hive_mind/labels{/name}","releases_url":"https://api.github.com/repos/bbc/hive_mind/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/hive_mind/deployments","created_at":"2015-10-23T09:28:38Z","updated_at":"2016-04-10T12:33:04Z","pushed_at":"2016-06-22T13:26:10Z","git_url":"git://github.com/bbc/hive_mind.git","ssh_url":"git@github.com:bbc/hive_mind.git","clone_url":"https://github.com/bbc/hive_mind.git","svn_url":"https://github.com/bbc/hive_mind","homepage":null,"size":1099,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":21,"forks":3,"open_issues":21,"watchers":5,"default_branch":"master"}},"base":{"label":"bbc:master","ref":"master","sha":"a6c4fa1571159a650e6872bc728773d26de6d23c","user":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":44803669,"name":"hive_mind","full_name":"bbc/hive_mind","owner":{"login":"bbc","id":828722,"avatar_url":"https://avatars.githubusercontent.com/u/828722?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/hive_mind","description":"Device management service for the Hive","fork":false,"url":"https://api.github.com/repos/bbc/hive_mind","forks_url":"https://api.github.com/repos/bbc/hive_mind/forks","keys_url":"https://api.github.com/repos/bbc/hive_mind/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/hive_mind/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/hive_mind/teams","hooks_url":"https://api.github.com/repos/bbc/hive_mind/hooks","issue_events_url":"https://api.github.com/repos/bbc/hive_mind/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/hive_mind/events","assignees_url":"https://api.github.com/repos/bbc/hive_mind/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/hive_mind/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/hive_mind/tags","blobs_url":"https://api.github.com/repos/bbc/hive_mind/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/hive_mind/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/hive_mind/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/hive_mind/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/hive_mind/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/hive_mind/languages","stargazers_url":"https://api.github.com/repos/bbc/hive_mind/stargazers","contributors_url":"https://api.github.com/repos/bbc/hive_mind/contributors","subscribers_url":"https://api.github.com/repos/bbc/hive_mind/subscribers","subscription_url":"https://api.github.com/repos/bbc/hive_mind/subscription","commits_url":"https://api.github.com/repos/bbc/hive_mind/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/hive_mind/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/hive_mind/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/hive_mind/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/hive_mind/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/hive_mind/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/hive_mind/merges","archive_url":"https://api.github.com/repos/bbc/hive_mind/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/hive_mind/downloads","issues_url":"https://api.github.com/repos/bbc/hive_mind/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/hive_mind/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/hive_mind/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/hive_mind/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/hive_mind/labels{/name}","releases_url":"https://api.github.com/repos/bbc/hive_mind/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/hive_mind/deployments","created_at":"2015-10-23T09:28:38Z","updated_at":"2016-04-10T12:33:04Z","pushed_at":"2016-06-22T13:26:10Z","git_url":"git://github.com/bbc/hive_mind.git","ssh_url":"git@github.com:bbc/hive_mind.git","clone_url":"https://github.com/bbc/hive_mind.git","svn_url":"https://github.com/bbc/hive_mind","homepage":null,"size":1099,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":21,"forks":3,"open_issues":21,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/154"},"html":{"href":"https://github.com/bbc/hive_mind/pull/154"},"issue":{"href":"https://api.github.com/repos/bbc/hive_mind/issues/154"},"comments":{"href":"https://api.github.com/repos/bbc/hive_mind/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/hive_mind/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/hive_mind/statuses/dfc6f48759d7228af60eff0773cb97fff632a99e"}}}}
{"actor":{"display_login":"jonpwilson"}}