{"action":"created","comment":{"url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/comments/25380280","id":25380280,"diff_hunk":"@@ -60,6 +60,27 @@ proc_list *get_highest_priority_ready_task(void)\n     return result;\n }\n \n+static bool admission_control(unsigned int computation, unsigned int period)\n+{\n+    unsigned int sum_C = 0;\n+    unsigned int sum_P = 0;\n+    unsigned int util_bound = 693;\n+    unsigned int multiplier = 1000;\n+    proc_list *tmp;\n+    mutex_lock_interruptible(&mp2_mutex);\n+    list_for_each_entry(tmp, &mp2_proc_list, list) {\n+        sum_C += tmp->computation;\n+        sum_P += tmp->period;\n+    }\n+    mutex_unlock(&mp2_mutex);","path":"MP2/mp2.c","position":16,"original_position":16,"commit_id":"0af0187f7cf1932c5742404b1d0707315ca0be17","original_commit_id":"0af0187f7cf1932c5742404b1d0707315ca0be17","user":{"login":"raywang945","id":5692933,"avatar_url":"https://avatars.githubusercontent.com/u/5692933?v=3","gravatar_id":"","url":"https://api.github.com/users/raywang945","html_url":"https://github.com/raywang945","followers_url":"https://api.github.com/users/raywang945/followers","following_url":"https://api.github.com/users/raywang945/following{/other_user}","gists_url":"https://api.github.com/users/raywang945/gists{/gist_id}","starred_url":"https://api.github.com/users/raywang945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raywang945/subscriptions","organizations_url":"https://api.github.com/users/raywang945/orgs","repos_url":"https://api.github.com/users/raywang945/repos","events_url":"https://api.github.com/users/raywang945/events{/privacy}","received_events_url":"https://api.github.com/users/raywang945/received_events","type":"User","site_admin":false},"body":"@alicelee0606 add blank line between line 75 and 76","created_at":"2015-02-25T21:23:15Z","updated_at":"2015-02-25T21:23:15Z","html_url":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4#discussion_r25380280","pull_request_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/comments/25380280"},"html":{"href":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4#discussion_r25380280"},"pull_request":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4","id":30024779,"html_url":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4","diff_url":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4.diff","patch_url":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4.patch","issue_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/4","number":4,"state":"open","locked":false,"title":"add function admission_control()","user":{"login":"alicelee0606","id":6253434,"avatar_url":"https://avatars.githubusercontent.com/u/6253434?v=3","gravatar_id":"","url":"https://api.github.com/users/alicelee0606","html_url":"https://github.com/alicelee0606","followers_url":"https://api.github.com/users/alicelee0606/followers","following_url":"https://api.github.com/users/alicelee0606/following{/other_user}","gists_url":"https://api.github.com/users/alicelee0606/gists{/gist_id}","starred_url":"https://api.github.com/users/alicelee0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicelee0606/subscriptions","organizations_url":"https://api.github.com/users/alicelee0606/orgs","repos_url":"https://api.github.com/users/alicelee0606/repos","events_url":"https://api.github.com/users/alicelee0606/events{/privacy}","received_events_url":"https://api.github.com/users/alicelee0606/received_events","type":"User","site_admin":false},"body":"Why?\r\n======\r\nfunction admissionControl() is for step 8\r\nHow?\r\n======\r\nby using fixed point arithmetic\r\ncc @raywang945 @maple1216 ","created_at":"2015-02-25T21:00:37Z","updated_at":"2015-02-25T21:23:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44374a9947ab6e9252134486378fa7a1dae1866a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4/commits","review_comments_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4/comments","review_comment_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/4/comments","statuses_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/statuses/0af0187f7cf1932c5742404b1d0707315ca0be17","head":{"label":"alicelee0606:admissionControl","ref":"admissionControl","sha":"0af0187f7cf1932c5742404b1d0707315ca0be17","user":{"login":"alicelee0606","id":6253434,"avatar_url":"https://avatars.githubusercontent.com/u/6253434?v=3","gravatar_id":"","url":"https://api.github.com/users/alicelee0606","html_url":"https://github.com/alicelee0606","followers_url":"https://api.github.com/users/alicelee0606/followers","following_url":"https://api.github.com/users/alicelee0606/following{/other_user}","gists_url":"https://api.github.com/users/alicelee0606/gists{/gist_id}","starred_url":"https://api.github.com/users/alicelee0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicelee0606/subscriptions","organizations_url":"https://api.github.com/users/alicelee0606/orgs","repos_url":"https://api.github.com/users/alicelee0606/repos","events_url":"https://api.github.com/users/alicelee0606/events{/privacy}","received_events_url":"https://api.github.com/users/alicelee0606/received_events","type":"User","site_admin":false},"repo":{"id":31187417,"name":"UIUC-spring-2015-CS423","full_name":"alicelee0606/UIUC-spring-2015-CS423","owner":{"login":"alicelee0606","id":6253434,"avatar_url":"https://avatars.githubusercontent.com/u/6253434?v=3","gravatar_id":"","url":"https://api.github.com/users/alicelee0606","html_url":"https://github.com/alicelee0606","followers_url":"https://api.github.com/users/alicelee0606/followers","following_url":"https://api.github.com/users/alicelee0606/following{/other_user}","gists_url":"https://api.github.com/users/alicelee0606/gists{/gist_id}","starred_url":"https://api.github.com/users/alicelee0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicelee0606/subscriptions","organizations_url":"https://api.github.com/users/alicelee0606/orgs","repos_url":"https://api.github.com/users/alicelee0606/repos","events_url":"https://api.github.com/users/alicelee0606/events{/privacy}","received_events_url":"https://api.github.com/users/alicelee0606/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alicelee0606/UIUC-spring-2015-CS423","description":"MPs","fork":true,"url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423","forks_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/forks","keys_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/teams","hooks_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/hooks","issue_events_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/issues/events{/number}","events_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/events","assignees_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/assignees{/user}","branches_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/branches{/branch}","tags_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/tags","blobs_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/git/refs{/sha}","trees_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/statuses/{sha}","languages_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/languages","stargazers_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/stargazers","contributors_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/contributors","subscribers_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/subscribers","subscription_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/subscription","commits_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/commits{/sha}","git_commits_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/git/commits{/sha}","comments_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/comments{/number}","issue_comment_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/issues/comments{/number}","contents_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/contents/{+path}","compare_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/merges","archive_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/downloads","issues_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/issues{/number}","pulls_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/pulls{/number}","milestones_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/milestones{/number}","notifications_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/labels{/name}","releases_url":"https://api.github.com/repos/alicelee0606/UIUC-spring-2015-CS423/releases{/id}","created_at":"2015-02-23T00:09:23Z","updated_at":"2015-02-25T17:13:28Z","pushed_at":"2015-02-25T20:57:44Z","git_url":"git://github.com/alicelee0606/UIUC-spring-2015-CS423.git","ssh_url":"git@github.com:alicelee0606/UIUC-spring-2015-CS423.git","clone_url":"https://github.com/alicelee0606/UIUC-spring-2015-CS423.git","svn_url":"https://github.com/alicelee0606/UIUC-spring-2015-CS423","homepage":null,"size":0,"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":"raywang945:master","ref":"master","sha":"303abd312111d08b3ad85d7cd744f1817f9de1d9","user":{"login":"raywang945","id":5692933,"avatar_url":"https://avatars.githubusercontent.com/u/5692933?v=3","gravatar_id":"","url":"https://api.github.com/users/raywang945","html_url":"https://github.com/raywang945","followers_url":"https://api.github.com/users/raywang945/followers","following_url":"https://api.github.com/users/raywang945/following{/other_user}","gists_url":"https://api.github.com/users/raywang945/gists{/gist_id}","starred_url":"https://api.github.com/users/raywang945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raywang945/subscriptions","organizations_url":"https://api.github.com/users/raywang945/orgs","repos_url":"https://api.github.com/users/raywang945/repos","events_url":"https://api.github.com/users/raywang945/events{/privacy}","received_events_url":"https://api.github.com/users/raywang945/received_events","type":"User","site_admin":false},"repo":{"id":31182515,"name":"UIUC-spring-2015-CS423","full_name":"raywang945/UIUC-spring-2015-CS423","owner":{"login":"raywang945","id":5692933,"avatar_url":"https://avatars.githubusercontent.com/u/5692933?v=3","gravatar_id":"","url":"https://api.github.com/users/raywang945","html_url":"https://github.com/raywang945","followers_url":"https://api.github.com/users/raywang945/followers","following_url":"https://api.github.com/users/raywang945/following{/other_user}","gists_url":"https://api.github.com/users/raywang945/gists{/gist_id}","starred_url":"https://api.github.com/users/raywang945/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raywang945/subscriptions","organizations_url":"https://api.github.com/users/raywang945/orgs","repos_url":"https://api.github.com/users/raywang945/repos","events_url":"https://api.github.com/users/raywang945/events{/privacy}","received_events_url":"https://api.github.com/users/raywang945/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raywang945/UIUC-spring-2015-CS423","description":"MPs","fork":false,"url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423","forks_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/forks","keys_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/teams","hooks_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/hooks","issue_events_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/events{/number}","events_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/events","assignees_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/assignees{/user}","branches_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/branches{/branch}","tags_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/tags","blobs_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/git/refs{/sha}","trees_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/statuses/{sha}","languages_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/languages","stargazers_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/stargazers","contributors_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/contributors","subscribers_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/subscribers","subscription_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/subscription","commits_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/commits{/sha}","git_commits_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/git/commits{/sha}","comments_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/comments{/number}","issue_comment_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/comments{/number}","contents_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/contents/{+path}","compare_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/merges","archive_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/downloads","issues_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues{/number}","pulls_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls{/number}","milestones_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/milestones{/number}","notifications_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/labels{/name}","releases_url":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/releases{/id}","created_at":"2015-02-22T21:55:26Z","updated_at":"2015-02-25T17:12:58Z","pushed_at":"2015-02-25T17:12:58Z","git_url":"git://github.com/raywang945/UIUC-spring-2015-CS423.git","ssh_url":"git@github.com:raywang945/UIUC-spring-2015-CS423.git","clone_url":"https://github.com/raywang945/UIUC-spring-2015-CS423.git","svn_url":"https://github.com/raywang945/UIUC-spring-2015-CS423","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4"},"html":{"href":"https://github.com/raywang945/UIUC-spring-2015-CS423/pull/4"},"issue":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/4"},"comments":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/raywang945/UIUC-spring-2015-CS423/statuses/0af0187f7cf1932c5742404b1d0707315ca0be17"}}}}