{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27","id":76527356,"html_url":"https://github.com/FRC-Utilities/QDriverStation/pull/27","diff_url":"https://github.com/FRC-Utilities/QDriverStation/pull/27.diff","patch_url":"https://github.com/FRC-Utilities/QDriverStation/pull/27.patch","issue_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/27","number":27,"state":"closed","locked":false,"title":"Fixed CPU usage indicator on Linux","user":{"login":"calcmogul","id":2748555,"avatar_url":"https://avatars.githubusercontent.com/u/2748555?v=3","gravatar_id":"","url":"https://api.github.com/users/calcmogul","html_url":"https://github.com/calcmogul","followers_url":"https://api.github.com/users/calcmogul/followers","following_url":"https://api.github.com/users/calcmogul/following{/other_user}","gists_url":"https://api.github.com/users/calcmogul/gists{/gist_id}","starred_url":"https://api.github.com/users/calcmogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calcmogul/subscriptions","organizations_url":"https://api.github.com/users/calcmogul/orgs","repos_url":"https://api.github.com/users/calcmogul/repos","events_url":"https://api.github.com/users/calcmogul/events{/privacy}","received_events_url":"https://api.github.com/users/calcmogul/received_events","type":"User","site_admin":false},"body":"The previous implementation was only using one sample from /proc/stat to compute the current CPU usage. That gave the average CPU usage since system start. The correct way is to use the difference between two samples. This patch does so without needing to spawn a bash process.","created_at":"2016-07-07T01:32:28Z","updated_at":"2016-07-07T03:09:18Z","closed_at":"2016-07-07T03:09:18Z","merged_at":"2016-07-07T03:09:18Z","merge_commit_sha":"c78f25e283efdc9d3d00ae0f578498e2dd42f8b1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27/commits","review_comments_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27/comments","review_comment_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/27/comments","statuses_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/statuses/76c045136700dd6a25e7e3687cc53709f0da46ad","head":{"label":"calcmogul:linux-cpu","ref":"linux-cpu","sha":"76c045136700dd6a25e7e3687cc53709f0da46ad","user":{"login":"calcmogul","id":2748555,"avatar_url":"https://avatars.githubusercontent.com/u/2748555?v=3","gravatar_id":"","url":"https://api.github.com/users/calcmogul","html_url":"https://github.com/calcmogul","followers_url":"https://api.github.com/users/calcmogul/followers","following_url":"https://api.github.com/users/calcmogul/following{/other_user}","gists_url":"https://api.github.com/users/calcmogul/gists{/gist_id}","starred_url":"https://api.github.com/users/calcmogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calcmogul/subscriptions","organizations_url":"https://api.github.com/users/calcmogul/orgs","repos_url":"https://api.github.com/users/calcmogul/repos","events_url":"https://api.github.com/users/calcmogul/events{/privacy}","received_events_url":"https://api.github.com/users/calcmogul/received_events","type":"User","site_admin":false},"repo":{"id":62764789,"name":"QDriverStation","full_name":"calcmogul/QDriverStation","owner":{"login":"calcmogul","id":2748555,"avatar_url":"https://avatars.githubusercontent.com/u/2748555?v=3","gravatar_id":"","url":"https://api.github.com/users/calcmogul","html_url":"https://github.com/calcmogul","followers_url":"https://api.github.com/users/calcmogul/followers","following_url":"https://api.github.com/users/calcmogul/following{/other_user}","gists_url":"https://api.github.com/users/calcmogul/gists{/gist_id}","starred_url":"https://api.github.com/users/calcmogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calcmogul/subscriptions","organizations_url":"https://api.github.com/users/calcmogul/orgs","repos_url":"https://api.github.com/users/calcmogul/repos","events_url":"https://api.github.com/users/calcmogul/events{/privacy}","received_events_url":"https://api.github.com/users/calcmogul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/calcmogul/QDriverStation","description":"Open source clone of the FRC Driver Station","fork":true,"url":"https://api.github.com/repos/calcmogul/QDriverStation","forks_url":"https://api.github.com/repos/calcmogul/QDriverStation/forks","keys_url":"https://api.github.com/repos/calcmogul/QDriverStation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calcmogul/QDriverStation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calcmogul/QDriverStation/teams","hooks_url":"https://api.github.com/repos/calcmogul/QDriverStation/hooks","issue_events_url":"https://api.github.com/repos/calcmogul/QDriverStation/issues/events{/number}","events_url":"https://api.github.com/repos/calcmogul/QDriverStation/events","assignees_url":"https://api.github.com/repos/calcmogul/QDriverStation/assignees{/user}","branches_url":"https://api.github.com/repos/calcmogul/QDriverStation/branches{/branch}","tags_url":"https://api.github.com/repos/calcmogul/QDriverStation/tags","blobs_url":"https://api.github.com/repos/calcmogul/QDriverStation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calcmogul/QDriverStation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calcmogul/QDriverStation/git/refs{/sha}","trees_url":"https://api.github.com/repos/calcmogul/QDriverStation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calcmogul/QDriverStation/statuses/{sha}","languages_url":"https://api.github.com/repos/calcmogul/QDriverStation/languages","stargazers_url":"https://api.github.com/repos/calcmogul/QDriverStation/stargazers","contributors_url":"https://api.github.com/repos/calcmogul/QDriverStation/contributors","subscribers_url":"https://api.github.com/repos/calcmogul/QDriverStation/subscribers","subscription_url":"https://api.github.com/repos/calcmogul/QDriverStation/subscription","commits_url":"https://api.github.com/repos/calcmogul/QDriverStation/commits{/sha}","git_commits_url":"https://api.github.com/repos/calcmogul/QDriverStation/git/commits{/sha}","comments_url":"https://api.github.com/repos/calcmogul/QDriverStation/comments{/number}","issue_comment_url":"https://api.github.com/repos/calcmogul/QDriverStation/issues/comments{/number}","contents_url":"https://api.github.com/repos/calcmogul/QDriverStation/contents/{+path}","compare_url":"https://api.github.com/repos/calcmogul/QDriverStation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calcmogul/QDriverStation/merges","archive_url":"https://api.github.com/repos/calcmogul/QDriverStation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calcmogul/QDriverStation/downloads","issues_url":"https://api.github.com/repos/calcmogul/QDriverStation/issues{/number}","pulls_url":"https://api.github.com/repos/calcmogul/QDriverStation/pulls{/number}","milestones_url":"https://api.github.com/repos/calcmogul/QDriverStation/milestones{/number}","notifications_url":"https://api.github.com/repos/calcmogul/QDriverStation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calcmogul/QDriverStation/labels{/name}","releases_url":"https://api.github.com/repos/calcmogul/QDriverStation/releases{/id}","deployments_url":"https://api.github.com/repos/calcmogul/QDriverStation/deployments","created_at":"2016-07-07T01:26:27Z","updated_at":"2016-07-07T01:26:28Z","pushed_at":"2016-07-07T01:31:22Z","git_url":"git://github.com/calcmogul/QDriverStation.git","ssh_url":"git@github.com:calcmogul/QDriverStation.git","clone_url":"https://github.com/calcmogul/QDriverStation.git","svn_url":"https://github.com/calcmogul/QDriverStation","homepage":"http://qdriverstation.sf.net","size":22136,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FRC-Utilities:master","ref":"master","sha":"2cb58236ddf0d6fe172a31fd4a09942f02f1d092","user":{"login":"FRC-Utilities","id":19879862,"avatar_url":"https://avatars.githubusercontent.com/u/19879862?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC-Utilities","html_url":"https://github.com/FRC-Utilities","followers_url":"https://api.github.com/users/FRC-Utilities/followers","following_url":"https://api.github.com/users/FRC-Utilities/following{/other_user}","gists_url":"https://api.github.com/users/FRC-Utilities/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC-Utilities/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC-Utilities/subscriptions","organizations_url":"https://api.github.com/users/FRC-Utilities/orgs","repos_url":"https://api.github.com/users/FRC-Utilities/repos","events_url":"https://api.github.com/users/FRC-Utilities/events{/privacy}","received_events_url":"https://api.github.com/users/FRC-Utilities/received_events","type":"Organization","site_admin":false},"repo":{"id":42375715,"name":"QDriverStation","full_name":"FRC-Utilities/QDriverStation","owner":{"login":"FRC-Utilities","id":19879862,"avatar_url":"https://avatars.githubusercontent.com/u/19879862?v=3","gravatar_id":"","url":"https://api.github.com/users/FRC-Utilities","html_url":"https://github.com/FRC-Utilities","followers_url":"https://api.github.com/users/FRC-Utilities/followers","following_url":"https://api.github.com/users/FRC-Utilities/following{/other_user}","gists_url":"https://api.github.com/users/FRC-Utilities/gists{/gist_id}","starred_url":"https://api.github.com/users/FRC-Utilities/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRC-Utilities/subscriptions","organizations_url":"https://api.github.com/users/FRC-Utilities/orgs","repos_url":"https://api.github.com/users/FRC-Utilities/repos","events_url":"https://api.github.com/users/FRC-Utilities/events{/privacy}","received_events_url":"https://api.github.com/users/FRC-Utilities/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRC-Utilities/QDriverStation","description":"Open source clone of the FRC Driver Station","fork":false,"url":"https://api.github.com/repos/FRC-Utilities/QDriverStation","forks_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/forks","keys_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/teams","hooks_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/hooks","issue_events_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/events{/number}","events_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/events","assignees_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/assignees{/user}","branches_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/branches{/branch}","tags_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/tags","blobs_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/statuses/{sha}","languages_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/languages","stargazers_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/stargazers","contributors_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/contributors","subscribers_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/subscribers","subscription_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/subscription","commits_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/comments{/number}","contents_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/contents/{+path}","compare_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/merges","archive_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/downloads","issues_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues{/number}","pulls_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls{/number}","milestones_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/milestones{/number}","notifications_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/labels{/name}","releases_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/releases{/id}","deployments_url":"https://api.github.com/repos/FRC-Utilities/QDriverStation/deployments","created_at":"2015-09-12T22:40:00Z","updated_at":"2016-07-01T15:29:48Z","pushed_at":"2016-07-07T03:09:19Z","git_url":"git://github.com/FRC-Utilities/QDriverStation.git","ssh_url":"git@github.com:FRC-Utilities/QDriverStation.git","clone_url":"https://github.com/FRC-Utilities/QDriverStation.git","svn_url":"https://github.com/FRC-Utilities/QDriverStation","homepage":"http://qdriverstation.sf.net","size":22437,"stargazers_count":61,"watchers_count":61,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27"},"html":{"href":"https://github.com/FRC-Utilities/QDriverStation/pull/27"},"issue":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/27"},"comments":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/FRC-Utilities/QDriverStation/statuses/76c045136700dd6a25e7e3687cc53709f0da46ad"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"alex-spataru","id":4225542,"avatar_url":"https://avatars.githubusercontent.com/u/4225542?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-spataru","html_url":"https://github.com/alex-spataru","followers_url":"https://api.github.com/users/alex-spataru/followers","following_url":"https://api.github.com/users/alex-spataru/following{/other_user}","gists_url":"https://api.github.com/users/alex-spataru/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-spataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-spataru/subscriptions","organizations_url":"https://api.github.com/users/alex-spataru/orgs","repos_url":"https://api.github.com/users/alex-spataru/repos","events_url":"https://api.github.com/users/alex-spataru/events{/privacy}","received_events_url":"https://api.github.com/users/alex-spataru/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":35,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"alex-spataru"}}