{"action":"closed","number":198,"pull_request":{"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198","id":52532592,"html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/198","diff_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/198.diff","patch_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/198.patch","issue_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/198","number":198,"state":"closed","locked":false,"title":"Avoid going to the network when we just received a packet ","user":{"login":"jamorham","id":12565568,"avatar_url":"https://avatars.githubusercontent.com/u/12565568?v=3","gravatar_id":"","url":"https://api.github.com/users/jamorham","html_url":"https://github.com/jamorham","followers_url":"https://api.github.com/users/jamorham/followers","following_url":"https://api.github.com/users/jamorham/following{/other_user}","gists_url":"https://api.github.com/users/jamorham/gists{/gist_id}","starred_url":"https://api.github.com/users/jamorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamorham/subscriptions","organizations_url":"https://api.github.com/users/jamorham/orgs","repos_url":"https://api.github.com/users/jamorham/repos","events_url":"https://api.github.com/users/jamorham/events{/privacy}","received_events_url":"https://api.github.com/users/jamorham/received_events","type":"User","site_admin":false},"body":"This patch avoids the situation where a wifi-wixel request goes out and succeeds getting the latest data and then 10 seconds later tries again regardless.\r\n\r\nThe issue is caused by the timer being armed before the network request is made. This additional check prevents going to the network when we already have the most recent packet.\r\n\r\nIn ideal conditions this will halve network usage with wifi wixel mode.","created_at":"2015-12-03T13:17:37Z","updated_at":"2015-12-05T16:10:54Z","closed_at":"2015-12-05T16:10:54Z","merged_at":"2015-12-05T16:10:54Z","merge_commit_sha":"d03d25b233ce843c2aef315fe1ad424a99fbd833","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198/commits","review_comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198/comments","review_comment_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/198/comments","statuses_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/04b3a2ea57b44229b65e16d1fdc9ca064feb70d1","head":{"label":"jamorham:jamorham-reducenetwork5","ref":"jamorham-reducenetwork5","sha":"04b3a2ea57b44229b65e16d1fdc9ca064feb70d1","user":{"login":"jamorham","id":12565568,"avatar_url":"https://avatars.githubusercontent.com/u/12565568?v=3","gravatar_id":"","url":"https://api.github.com/users/jamorham","html_url":"https://github.com/jamorham","followers_url":"https://api.github.com/users/jamorham/followers","following_url":"https://api.github.com/users/jamorham/following{/other_user}","gists_url":"https://api.github.com/users/jamorham/gists{/gist_id}","starred_url":"https://api.github.com/users/jamorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamorham/subscriptions","organizations_url":"https://api.github.com/users/jamorham/orgs","repos_url":"https://api.github.com/users/jamorham/repos","events_url":"https://api.github.com/users/jamorham/events{/privacy}","received_events_url":"https://api.github.com/users/jamorham/received_events","type":"User","site_admin":false},"repo":{"id":41933834,"name":"xDrip-Experimental","full_name":"jamorham/xDrip-Experimental","owner":{"login":"jamorham","id":12565568,"avatar_url":"https://avatars.githubusercontent.com/u/12565568?v=3","gravatar_id":"","url":"https://api.github.com/users/jamorham","html_url":"https://github.com/jamorham","followers_url":"https://api.github.com/users/jamorham/followers","following_url":"https://api.github.com/users/jamorham/following{/other_user}","gists_url":"https://api.github.com/users/jamorham/gists{/gist_id}","starred_url":"https://api.github.com/users/jamorham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamorham/subscriptions","organizations_url":"https://api.github.com/users/jamorham/orgs","repos_url":"https://api.github.com/users/jamorham/repos","events_url":"https://api.github.com/users/jamorham/events{/privacy}","received_events_url":"https://api.github.com/users/jamorham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamorham/xDrip-Experimental","description":"Experimental Branches for Collaboration on DexDrip","fork":true,"url":"https://api.github.com/repos/jamorham/xDrip-Experimental","forks_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/forks","keys_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/teams","hooks_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/hooks","issue_events_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/issues/events{/number}","events_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/events","assignees_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/assignees{/user}","branches_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/branches{/branch}","tags_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/tags","blobs_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/languages","stargazers_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/stargazers","contributors_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/contributors","subscribers_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/subscribers","subscription_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/subscription","commits_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/contents/{+path}","compare_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/merges","archive_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/downloads","issues_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/issues{/number}","pulls_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/labels{/name}","releases_url":"https://api.github.com/repos/jamorham/xDrip-Experimental/releases{/id}","created_at":"2015-09-04T19:20:54Z","updated_at":"2015-09-04T19:31:12Z","pushed_at":"2015-12-03T21:55:49Z","git_url":"git://github.com/jamorham/xDrip-Experimental.git","ssh_url":"git@github.com:jamorham/xDrip-Experimental.git","clone_url":"https://github.com/jamorham/xDrip-Experimental.git","svn_url":"https://github.com/jamorham/xDrip-Experimental","homepage":null,"size":5685,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"StephenBlackWasAlreadyTaken:master","ref":"master","sha":"28f1766fc3db04b4c9fb36dd991d1f7fc02c0c8b","user":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"repo":{"id":30898542,"name":"xDrip-Experimental","full_name":"StephenBlackWasAlreadyTaken/xDrip-Experimental","owner":{"login":"StephenBlackWasAlreadyTaken","id":649942,"avatar_url":"https://avatars.githubusercontent.com/u/649942?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBlackWasAlreadyTaken","html_url":"https://github.com/StephenBlackWasAlreadyTaken","followers_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/followers","following_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/following{/other_user}","gists_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/subscriptions","organizations_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/orgs","repos_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/repos","events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBlackWasAlreadyTaken/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","description":"Experimental Branches for Collaboration on DexDrip","fork":false,"url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental","forks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/forks","keys_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/teams","hooks_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/hooks","issue_events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/events","assignees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/tags","blobs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/languages","stargazers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/stargazers","contributors_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contributors","subscribers_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscribers","subscription_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/subscription","commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/merges","archive_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/downloads","issues_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/labels{/name}","releases_url":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/releases{/id}","created_at":"2015-02-17T02:04:01Z","updated_at":"2015-12-03T20:20:31Z","pushed_at":"2015-12-05T16:10:54Z","git_url":"git://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","ssh_url":"git@github.com:StephenBlackWasAlreadyTaken/xDrip-Experimental.git","clone_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental.git","svn_url":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental","homepage":null,"size":5984,"stargazers_count":14,"watchers_count":14,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":20,"forks":39,"open_issues":20,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198"},"html":{"href":"https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/pull/198"},"issue":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/198"},"comments":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/StephenBlackWasAlreadyTaken/xDrip-Experimental/statuses/04b3a2ea57b44229b65e16d1fdc9ca064feb70d1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tzachi-dar","id":7942372,"avatar_url":"https://avatars.githubusercontent.com/u/7942372?v=3","gravatar_id":"","url":"https://api.github.com/users/tzachi-dar","html_url":"https://github.com/tzachi-dar","followers_url":"https://api.github.com/users/tzachi-dar/followers","following_url":"https://api.github.com/users/tzachi-dar/following{/other_user}","gists_url":"https://api.github.com/users/tzachi-dar/gists{/gist_id}","starred_url":"https://api.github.com/users/tzachi-dar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzachi-dar/subscriptions","organizations_url":"https://api.github.com/users/tzachi-dar/orgs","repos_url":"https://api.github.com/users/tzachi-dar/repos","events_url":"https://api.github.com/users/tzachi-dar/events{/privacy}","received_events_url":"https://api.github.com/users/tzachi-dar/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"commits":1,"additions":14,"deletions":4,"changed_files":1}}