{"action":"created","comment":{"url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/comments/35938263","id":35938263,"diff_hunk":"@@ -147,20 +146,11 @@ public void run() {\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tstats.put(enttype.name(), entcost);\r\n \t\t\t\t\t}\r\n-\t\t\t\t\tif (totalCost >= lagSourceThreshold) {\r\n-\t\t\t\t\t\tAFKPGC.debug(\"Chunk \", chunkId, \" passed source threshold with tiles and entities\");\r\n+\t\t\t\t\tif (totalCost >= lagSourceThreshold && !fullScan) {\r\n \t\t\t\t\t\tbreak; // if we cross the threshold, don't keep adding.\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n-\t\t\tStringBuffer sb = new StringBuffer();\r","path":"src/com/github/Kraken3/AFKPGC/LagScanner.java","position":58,"original_position":58,"commit_id":"9ba1051a8df786e461d75a553a75f398a7f61dfb","original_commit_id":"9ba1051a8df786e461d75a553a75f398a7f61dfb","user":{"login":"ProgrammerDan","id":409230,"avatar_url":"https://avatars.githubusercontent.com/u/409230?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammerDan","html_url":"https://github.com/ProgrammerDan","followers_url":"https://api.github.com/users/ProgrammerDan/followers","following_url":"https://api.github.com/users/ProgrammerDan/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammerDan/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammerDan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammerDan/subscriptions","organizations_url":"https://api.github.com/users/ProgrammerDan/orgs","repos_url":"https://api.github.com/users/ProgrammerDan/repos","events_url":"https://api.github.com/users/ProgrammerDan/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammerDan/received_events","type":"User","site_admin":false},"body":"I'm thinking, remove the logging line from the loop that calls testChunk, and instead add a line at 156 that displays the same information + the stats summation in one line.\r\n\r\nThen, add an ```else``` at 157 that displays the cached result of the test.","created_at":"2015-07-31T00:56:47Z","updated_at":"2015-07-31T00:56:47Z","html_url":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2#discussion_r35938263","pull_request_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/comments/35938263"},"html":{"href":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2#discussion_r35938263"},"pull_request":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2","id":41295451,"html_url":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2","diff_url":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2.diff","patch_url":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2.patch","issue_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/2","number":2,"state":"open","locked":false,"title":"Some config features and a debug cleanup of the chunk scanning","user":{"login":"Maxopoly","id":12138136,"avatar_url":"https://avatars.githubusercontent.com/u/12138136?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxopoly","html_url":"https://github.com/Maxopoly","followers_url":"https://api.github.com/users/Maxopoly/followers","following_url":"https://api.github.com/users/Maxopoly/following{/other_user}","gists_url":"https://api.github.com/users/Maxopoly/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxopoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxopoly/subscriptions","organizations_url":"https://api.github.com/users/Maxopoly/orgs","repos_url":"https://api.github.com/users/Maxopoly/repos","events_url":"https://api.github.com/users/Maxopoly/events{/privacy}","received_events_url":"https://api.github.com/users/Maxopoly/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-31T00:02:09Z","updated_at":"2015-07-31T00:56:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88f826fac31ce66523224bb66b4c50fef3dc00c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/2/comments","statuses_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/statuses/9ba1051a8df786e461d75a553a75f398a7f61dfb","head":{"label":"Maxopoly:bad-estimation","ref":"bad-estimation","sha":"9ba1051a8df786e461d75a553a75f398a7f61dfb","user":{"login":"Maxopoly","id":12138136,"avatar_url":"https://avatars.githubusercontent.com/u/12138136?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxopoly","html_url":"https://github.com/Maxopoly","followers_url":"https://api.github.com/users/Maxopoly/followers","following_url":"https://api.github.com/users/Maxopoly/following{/other_user}","gists_url":"https://api.github.com/users/Maxopoly/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxopoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxopoly/subscriptions","organizations_url":"https://api.github.com/users/Maxopoly/orgs","repos_url":"https://api.github.com/users/Maxopoly/repos","events_url":"https://api.github.com/users/Maxopoly/events{/privacy}","received_events_url":"https://api.github.com/users/Maxopoly/received_events","type":"User","site_admin":false},"repo":{"id":38326597,"name":"AFK-Player-GC","full_name":"Maxopoly/AFK-Player-GC","owner":{"login":"Maxopoly","id":12138136,"avatar_url":"https://avatars.githubusercontent.com/u/12138136?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxopoly","html_url":"https://github.com/Maxopoly","followers_url":"https://api.github.com/users/Maxopoly/followers","following_url":"https://api.github.com/users/Maxopoly/following{/other_user}","gists_url":"https://api.github.com/users/Maxopoly/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxopoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxopoly/subscriptions","organizations_url":"https://api.github.com/users/Maxopoly/orgs","repos_url":"https://api.github.com/users/Maxopoly/repos","events_url":"https://api.github.com/users/Maxopoly/events{/privacy}","received_events_url":"https://api.github.com/users/Maxopoly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Maxopoly/AFK-Player-GC","description":"AFK Player Garbage Collector","fork":true,"url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC","forks_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/forks","keys_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/teams","hooks_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/hooks","issue_events_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/issues/events{/number}","events_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/events","assignees_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/assignees{/user}","branches_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/branches{/branch}","tags_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/tags","blobs_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/statuses/{sha}","languages_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/languages","stargazers_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/stargazers","contributors_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/contributors","subscribers_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/subscribers","subscription_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/subscription","commits_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/contents/{+path}","compare_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/merges","archive_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/downloads","issues_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/issues{/number}","pulls_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/pulls{/number}","milestones_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/milestones{/number}","notifications_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/labels{/name}","releases_url":"https://api.github.com/repos/Maxopoly/AFK-Player-GC/releases{/id}","created_at":"2015-06-30T18:40:50Z","updated_at":"2015-06-30T18:40:51Z","pushed_at":"2015-07-30T23:56:52Z","git_url":"git://github.com/Maxopoly/AFK-Player-GC.git","ssh_url":"git@github.com:Maxopoly/AFK-Player-GC.git","clone_url":"https://github.com/Maxopoly/AFK-Player-GC.git","svn_url":"https://github.com/Maxopoly/AFK-Player-GC","homepage":null,"size":14618,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"ProgrammerDan:bad-estimation","ref":"bad-estimation","sha":"e1c2ad646e28fc646e4f383eaab7b175a475538a","user":{"login":"ProgrammerDan","id":409230,"avatar_url":"https://avatars.githubusercontent.com/u/409230?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammerDan","html_url":"https://github.com/ProgrammerDan","followers_url":"https://api.github.com/users/ProgrammerDan/followers","following_url":"https://api.github.com/users/ProgrammerDan/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammerDan/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammerDan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammerDan/subscriptions","organizations_url":"https://api.github.com/users/ProgrammerDan/orgs","repos_url":"https://api.github.com/users/ProgrammerDan/repos","events_url":"https://api.github.com/users/ProgrammerDan/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammerDan/received_events","type":"User","site_admin":false},"repo":{"id":39364296,"name":"AFK-Player-GC","full_name":"ProgrammerDan/AFK-Player-GC","owner":{"login":"ProgrammerDan","id":409230,"avatar_url":"https://avatars.githubusercontent.com/u/409230?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammerDan","html_url":"https://github.com/ProgrammerDan","followers_url":"https://api.github.com/users/ProgrammerDan/followers","following_url":"https://api.github.com/users/ProgrammerDan/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammerDan/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammerDan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammerDan/subscriptions","organizations_url":"https://api.github.com/users/ProgrammerDan/orgs","repos_url":"https://api.github.com/users/ProgrammerDan/repos","events_url":"https://api.github.com/users/ProgrammerDan/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammerDan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammerDan/AFK-Player-GC","description":"AFK Player Garbage Collector","fork":true,"url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC","forks_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/forks","keys_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/teams","hooks_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/hooks","issue_events_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/events","assignees_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/tags","blobs_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/languages","stargazers_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/stargazers","contributors_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/contributors","subscribers_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/subscribers","subscription_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/subscription","commits_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/merges","archive_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/downloads","issues_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/releases{/id}","created_at":"2015-07-20T05:07:23Z","updated_at":"2015-07-20T05:07:23Z","pushed_at":"2015-07-31T00:02:09Z","git_url":"git://github.com/ProgrammerDan/AFK-Player-GC.git","ssh_url":"git@github.com:ProgrammerDan/AFK-Player-GC.git","clone_url":"https://github.com/ProgrammerDan/AFK-Player-GC.git","svn_url":"https://github.com/ProgrammerDan/AFK-Player-GC","homepage":null,"size":14627,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2"},"html":{"href":"https://github.com/ProgrammerDan/AFK-Player-GC/pull/2"},"issue":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/2"},"comments":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ProgrammerDan/AFK-Player-GC/statuses/9ba1051a8df786e461d75a553a75f398a7f61dfb"}}}}