{"action":"created","comment":{"url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/comments/32369426","id":32369426,"diff_hunk":"@@ -61,10 +59,19 @@ ngx_postgres_upstream_finalize_request(ngx_http_request_t *r,\n         u->resolved->ctx = NULL;\n     }\n \n+#if defined(nginx_version) && (nginx_version >= 1009001)\n+    if (u->state && u->state->response_time) {\n+        u->state->response_time = ngx_timeofday()->msec - u->state->response_time;\n+\n+#else\n+\n+    ngx_time_t  *tp;\n+\n     if (u->state && u->state->response_sec) {\n         tp = ngx_timeofday();\n         u->state->response_sec = tp->sec - u->state->response_sec;\n         u->state->response_msec = tp->msec - u->state->response_msec;\n+#endif","path":"src/ngx_postgres_util.c","position":25,"original_position":25,"commit_id":"5c738f59fe50dba2a9dfe421a97e33bf5308fd1b","original_commit_id":"5c738f59fe50dba2a9dfe421a97e33bf5308fd1b","user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"body":"We'd better have an empty line before this line as well.","created_at":"2015-06-13T10:07:36Z","updated_at":"2015-06-13T10:07:36Z","html_url":"https://github.com/FRiCKLE/ngx_postgres/pull/38#discussion_r32369426","pull_request_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/comments/32369426"},"html":{"href":"https://github.com/FRiCKLE/ngx_postgres/pull/38#discussion_r32369426"},"pull_request":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38","id":36949875,"html_url":"https://github.com/FRiCKLE/ngx_postgres/pull/38","diff_url":"https://github.com/FRiCKLE/ngx_postgres/pull/38.diff","patch_url":"https://github.com/FRiCKLE/ngx_postgres/pull/38.patch","issue_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/38","number":38,"state":"open","locked":false,"title":"Fixing compilation with nginx>=1.9.1","user":{"login":"msva","id":268102,"avatar_url":"https://avatars.githubusercontent.com/u/268102?v=3","gravatar_id":"","url":"https://api.github.com/users/msva","html_url":"https://github.com/msva","followers_url":"https://api.github.com/users/msva/followers","following_url":"https://api.github.com/users/msva/following{/other_user}","gists_url":"https://api.github.com/users/msva/gists{/gist_id}","starred_url":"https://api.github.com/users/msva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msva/subscriptions","organizations_url":"https://api.github.com/users/msva/orgs","repos_url":"https://api.github.com/users/msva/repos","events_url":"https://api.github.com/users/msva/events{/privacy}","received_events_url":"https://api.github.com/users/msva/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-04T16:01:03Z","updated_at":"2015-06-13T10:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdd066d46878921cae0c3a15e60737665a52bd62","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38/commits","review_comments_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38/comments","review_comment_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/38/comments","statuses_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/statuses/5c738f59fe50dba2a9dfe421a97e33bf5308fd1b","head":{"label":"msva:patch-1","ref":"patch-1","sha":"5c738f59fe50dba2a9dfe421a97e33bf5308fd1b","user":{"login":"msva","id":268102,"avatar_url":"https://avatars.githubusercontent.com/u/268102?v=3","gravatar_id":"","url":"https://api.github.com/users/msva","html_url":"https://github.com/msva","followers_url":"https://api.github.com/users/msva/followers","following_url":"https://api.github.com/users/msva/following{/other_user}","gists_url":"https://api.github.com/users/msva/gists{/gist_id}","starred_url":"https://api.github.com/users/msva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msva/subscriptions","organizations_url":"https://api.github.com/users/msva/orgs","repos_url":"https://api.github.com/users/msva/repos","events_url":"https://api.github.com/users/msva/events{/privacy}","received_events_url":"https://api.github.com/users/msva/received_events","type":"User","site_admin":false},"repo":{"id":36857965,"name":"ngx_postgres","full_name":"msva/ngx_postgres","owner":{"login":"msva","id":268102,"avatar_url":"https://avatars.githubusercontent.com/u/268102?v=3","gravatar_id":"","url":"https://api.github.com/users/msva","html_url":"https://github.com/msva","followers_url":"https://api.github.com/users/msva/followers","following_url":"https://api.github.com/users/msva/following{/other_user}","gists_url":"https://api.github.com/users/msva/gists{/gist_id}","starred_url":"https://api.github.com/users/msva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msva/subscriptions","organizations_url":"https://api.github.com/users/msva/orgs","repos_url":"https://api.github.com/users/msva/repos","events_url":"https://api.github.com/users/msva/events{/privacy}","received_events_url":"https://api.github.com/users/msva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msva/ngx_postgres","description":"upstream module that allows nginx to communicate directly with PostgreSQL database. ","fork":true,"url":"https://api.github.com/repos/msva/ngx_postgres","forks_url":"https://api.github.com/repos/msva/ngx_postgres/forks","keys_url":"https://api.github.com/repos/msva/ngx_postgres/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msva/ngx_postgres/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msva/ngx_postgres/teams","hooks_url":"https://api.github.com/repos/msva/ngx_postgres/hooks","issue_events_url":"https://api.github.com/repos/msva/ngx_postgres/issues/events{/number}","events_url":"https://api.github.com/repos/msva/ngx_postgres/events","assignees_url":"https://api.github.com/repos/msva/ngx_postgres/assignees{/user}","branches_url":"https://api.github.com/repos/msva/ngx_postgres/branches{/branch}","tags_url":"https://api.github.com/repos/msva/ngx_postgres/tags","blobs_url":"https://api.github.com/repos/msva/ngx_postgres/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msva/ngx_postgres/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msva/ngx_postgres/git/refs{/sha}","trees_url":"https://api.github.com/repos/msva/ngx_postgres/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msva/ngx_postgres/statuses/{sha}","languages_url":"https://api.github.com/repos/msva/ngx_postgres/languages","stargazers_url":"https://api.github.com/repos/msva/ngx_postgres/stargazers","contributors_url":"https://api.github.com/repos/msva/ngx_postgres/contributors","subscribers_url":"https://api.github.com/repos/msva/ngx_postgres/subscribers","subscription_url":"https://api.github.com/repos/msva/ngx_postgres/subscription","commits_url":"https://api.github.com/repos/msva/ngx_postgres/commits{/sha}","git_commits_url":"https://api.github.com/repos/msva/ngx_postgres/git/commits{/sha}","comments_url":"https://api.github.com/repos/msva/ngx_postgres/comments{/number}","issue_comment_url":"https://api.github.com/repos/msva/ngx_postgres/issues/comments{/number}","contents_url":"https://api.github.com/repos/msva/ngx_postgres/contents/{+path}","compare_url":"https://api.github.com/repos/msva/ngx_postgres/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msva/ngx_postgres/merges","archive_url":"https://api.github.com/repos/msva/ngx_postgres/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msva/ngx_postgres/downloads","issues_url":"https://api.github.com/repos/msva/ngx_postgres/issues{/number}","pulls_url":"https://api.github.com/repos/msva/ngx_postgres/pulls{/number}","milestones_url":"https://api.github.com/repos/msva/ngx_postgres/milestones{/number}","notifications_url":"https://api.github.com/repos/msva/ngx_postgres/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msva/ngx_postgres/labels{/name}","releases_url":"https://api.github.com/repos/msva/ngx_postgres/releases{/id}","created_at":"2015-06-04T08:27:38Z","updated_at":"2015-06-04T08:27:39Z","pushed_at":"2015-06-13T10:06:02Z","git_url":"git://github.com/msva/ngx_postgres.git","ssh_url":"git@github.com:msva/ngx_postgres.git","clone_url":"https://github.com/msva/ngx_postgres.git","svn_url":"https://github.com/msva/ngx_postgres","homepage":"http://labs.frickle.com/nginx_ngx_postgres/","size":509,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"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":"FRiCKLE:master","ref":"master","sha":"49855a037607c89426b59f54ae2d3049dc5d1c74","user":{"login":"FRiCKLE","id":179156,"avatar_url":"https://avatars.githubusercontent.com/u/179156?v=3","gravatar_id":"","url":"https://api.github.com/users/FRiCKLE","html_url":"https://github.com/FRiCKLE","followers_url":"https://api.github.com/users/FRiCKLE/followers","following_url":"https://api.github.com/users/FRiCKLE/following{/other_user}","gists_url":"https://api.github.com/users/FRiCKLE/gists{/gist_id}","starred_url":"https://api.github.com/users/FRiCKLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRiCKLE/subscriptions","organizations_url":"https://api.github.com/users/FRiCKLE/orgs","repos_url":"https://api.github.com/users/FRiCKLE/repos","events_url":"https://api.github.com/users/FRiCKLE/events{/privacy}","received_events_url":"https://api.github.com/users/FRiCKLE/received_events","type":"Organization","site_admin":false},"repo":{"id":648923,"name":"ngx_postgres","full_name":"FRiCKLE/ngx_postgres","owner":{"login":"FRiCKLE","id":179156,"avatar_url":"https://avatars.githubusercontent.com/u/179156?v=3","gravatar_id":"","url":"https://api.github.com/users/FRiCKLE","html_url":"https://github.com/FRiCKLE","followers_url":"https://api.github.com/users/FRiCKLE/followers","following_url":"https://api.github.com/users/FRiCKLE/following{/other_user}","gists_url":"https://api.github.com/users/FRiCKLE/gists{/gist_id}","starred_url":"https://api.github.com/users/FRiCKLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRiCKLE/subscriptions","organizations_url":"https://api.github.com/users/FRiCKLE/orgs","repos_url":"https://api.github.com/users/FRiCKLE/repos","events_url":"https://api.github.com/users/FRiCKLE/events{/privacy}","received_events_url":"https://api.github.com/users/FRiCKLE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FRiCKLE/ngx_postgres","description":"upstream module that allows nginx to communicate directly with PostgreSQL database. ","fork":false,"url":"https://api.github.com/repos/FRiCKLE/ngx_postgres","forks_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/forks","keys_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/teams","hooks_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/hooks","issue_events_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/events{/number}","events_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/events","assignees_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/assignees{/user}","branches_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/branches{/branch}","tags_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/tags","blobs_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/git/refs{/sha}","trees_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/statuses/{sha}","languages_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/languages","stargazers_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/stargazers","contributors_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/contributors","subscribers_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/subscribers","subscription_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/subscription","commits_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/commits{/sha}","git_commits_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/git/commits{/sha}","comments_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/comments{/number}","issue_comment_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/comments{/number}","contents_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/contents/{+path}","compare_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/merges","archive_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/downloads","issues_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues{/number}","pulls_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls{/number}","milestones_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/milestones{/number}","notifications_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/labels{/name}","releases_url":"https://api.github.com/repos/FRiCKLE/ngx_postgres/releases{/id}","created_at":"2010-05-05T19:05:17Z","updated_at":"2015-06-09T08:56:12Z","pushed_at":"2015-06-13T10:06:02Z","git_url":"git://github.com/FRiCKLE/ngx_postgres.git","ssh_url":"git@github.com:FRiCKLE/ngx_postgres.git","clone_url":"https://github.com/FRiCKLE/ngx_postgres.git","svn_url":"https://github.com/FRiCKLE/ngx_postgres","homepage":"http://labs.frickle.com/nginx_ngx_postgres/","size":813,"stargazers_count":252,"watchers_count":252,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":15,"forks":37,"open_issues":15,"watchers":252,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38"},"html":{"href":"https://github.com/FRiCKLE/ngx_postgres/pull/38"},"issue":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/38"},"comments":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/FRiCKLE/ngx_postgres/statuses/5c738f59fe50dba2a9dfe421a97e33bf5308fd1b"}}}}