{"action":"created","comment":{"url":"https://api.github.com/repos/interiorem/elliptics/pulls/comments/70607472","id":70607472,"diff_hunk":"@@ -27,14 +27,14 @@\n namespace ioremap { namespace monitor {\n \n top_stats::top_stats(size_t top_length, size_t events_size, int period_in_seconds)\n-: m_stats(events_size, period_in_seconds),\n- m_top_length(top_length),\n- m_period_in_seconds(period_in_seconds)\n-{}\n+: m_stats(events_size, period_in_seconds)\n+, m_top_length(top_length)\n+, m_period_in_seconds(period_in_seconds) {}\n \n void top_stats::update_stats(const struct dnet_cmd *cmd, uint64_t size)\n {\n-\tif (size > 0 && cmd->cmd == DNET_CMD_READ) {\n+\tbool is_read = (cmd->cmd == DNET_CMD_READ) || (cmd->cmd == DNET_CMD_READ_NEW);","path":"monitor/top.cpp","position":15,"original_position":15,"commit_id":"0828d35660722a01ec141c4119836a195c7cb5b9","original_commit_id":"0828d35660722a01ec141c4119836a195c7cb5b9","user":{"login":"abudnik","id":1283969,"avatar_url":"https://avatars.githubusercontent.com/u/1283969?v=3","gravatar_id":"","url":"https://api.github.com/users/abudnik","html_url":"https://github.com/abudnik","followers_url":"https://api.github.com/users/abudnik/followers","following_url":"https://api.github.com/users/abudnik/following{/other_user}","gists_url":"https://api.github.com/users/abudnik/gists{/gist_id}","starred_url":"https://api.github.com/users/abudnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abudnik/subscriptions","organizations_url":"https://api.github.com/users/abudnik/orgs","repos_url":"https://api.github.com/users/abudnik/repos","events_url":"https://api.github.com/users/abudnik/events{/privacy}","received_events_url":"https://api.github.com/users/abudnik/received_events","type":"User","site_admin":false},"body":"const bool","created_at":"2016-07-13T11:21:47Z","updated_at":"2016-07-13T11:21:47Z","html_url":"https://github.com/interiorem/elliptics/pull/59#discussion_r70607472","pull_request_url":"https://api.github.com/repos/interiorem/elliptics/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/comments/70607472"},"html":{"href":"https://github.com/interiorem/elliptics/pull/59#discussion_r70607472"},"pull_request":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/interiorem/elliptics/pulls/59","id":77262860,"html_url":"https://github.com/interiorem/elliptics/pull/59","diff_url":"https://github.com/interiorem/elliptics/pull/59.diff","patch_url":"https://github.com/interiorem/elliptics/pull/59.patch","issue_url":"https://api.github.com/repos/interiorem/elliptics/issues/59","number":59,"state":"open","locked":false,"title":"stats: update commands and top statistics for {READ,WRITE}_NEW","user":{"login":"shaitan","id":446423,"avatar_url":"https://avatars.githubusercontent.com/u/446423?v=3","gravatar_id":"","url":"https://api.github.com/users/shaitan","html_url":"https://github.com/shaitan","followers_url":"https://api.github.com/users/shaitan/followers","following_url":"https://api.github.com/users/shaitan/following{/other_user}","gists_url":"https://api.github.com/users/shaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaitan/subscriptions","organizations_url":"https://api.github.com/users/shaitan/orgs","repos_url":"https://api.github.com/users/shaitan/repos","events_url":"https://api.github.com/users/shaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shaitan/received_events","type":"User","site_admin":false},"body":"Add `dnet_cmd_stats` which will be pass to all handlers to collect statistics about command handling like: time spent by the command in queue, wheather the command was handled by cache, time spent on command handling and size of command's data (for read - size of read data, for write - size of written data, for others - 0).\r\n\r\nAdd sending to commands and top statistics info about handling READ_NEW and WRITE_NEW.","created_at":"2016-07-13T10:10:11Z","updated_at":"2016-07-13T11:21:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70b6ea198b3d91b55d1dd90adc22ec7d8a1bc015","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/interiorem/elliptics/pulls/59/commits","review_comments_url":"https://api.github.com/repos/interiorem/elliptics/pulls/59/comments","review_comment_url":"https://api.github.com/repos/interiorem/elliptics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/interiorem/elliptics/issues/59/comments","statuses_url":"https://api.github.com/repos/interiorem/elliptics/statuses/0828d35660722a01ec141c4119836a195c7cb5b9","head":{"label":"shaitan:statistics","ref":"statistics","sha":"0828d35660722a01ec141c4119836a195c7cb5b9","user":{"login":"shaitan","id":446423,"avatar_url":"https://avatars.githubusercontent.com/u/446423?v=3","gravatar_id":"","url":"https://api.github.com/users/shaitan","html_url":"https://github.com/shaitan","followers_url":"https://api.github.com/users/shaitan/followers","following_url":"https://api.github.com/users/shaitan/following{/other_user}","gists_url":"https://api.github.com/users/shaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaitan/subscriptions","organizations_url":"https://api.github.com/users/shaitan/orgs","repos_url":"https://api.github.com/users/shaitan/repos","events_url":"https://api.github.com/users/shaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shaitan/received_events","type":"User","site_admin":false},"repo":{"id":10053124,"name":"elliptics","full_name":"shaitan/elliptics","owner":{"login":"shaitan","id":446423,"avatar_url":"https://avatars.githubusercontent.com/u/446423?v=3","gravatar_id":"","url":"https://api.github.com/users/shaitan","html_url":"https://github.com/shaitan","followers_url":"https://api.github.com/users/shaitan/followers","following_url":"https://api.github.com/users/shaitan/following{/other_user}","gists_url":"https://api.github.com/users/shaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaitan/subscriptions","organizations_url":"https://api.github.com/users/shaitan/orgs","repos_url":"https://api.github.com/users/shaitan/repos","events_url":"https://api.github.com/users/shaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shaitan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shaitan/elliptics","description":"Distributed hashtable storage","fork":true,"url":"https://api.github.com/repos/shaitan/elliptics","forks_url":"https://api.github.com/repos/shaitan/elliptics/forks","keys_url":"https://api.github.com/repos/shaitan/elliptics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shaitan/elliptics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shaitan/elliptics/teams","hooks_url":"https://api.github.com/repos/shaitan/elliptics/hooks","issue_events_url":"https://api.github.com/repos/shaitan/elliptics/issues/events{/number}","events_url":"https://api.github.com/repos/shaitan/elliptics/events","assignees_url":"https://api.github.com/repos/shaitan/elliptics/assignees{/user}","branches_url":"https://api.github.com/repos/shaitan/elliptics/branches{/branch}","tags_url":"https://api.github.com/repos/shaitan/elliptics/tags","blobs_url":"https://api.github.com/repos/shaitan/elliptics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shaitan/elliptics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shaitan/elliptics/git/refs{/sha}","trees_url":"https://api.github.com/repos/shaitan/elliptics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shaitan/elliptics/statuses/{sha}","languages_url":"https://api.github.com/repos/shaitan/elliptics/languages","stargazers_url":"https://api.github.com/repos/shaitan/elliptics/stargazers","contributors_url":"https://api.github.com/repos/shaitan/elliptics/contributors","subscribers_url":"https://api.github.com/repos/shaitan/elliptics/subscribers","subscription_url":"https://api.github.com/repos/shaitan/elliptics/subscription","commits_url":"https://api.github.com/repos/shaitan/elliptics/commits{/sha}","git_commits_url":"https://api.github.com/repos/shaitan/elliptics/git/commits{/sha}","comments_url":"https://api.github.com/repos/shaitan/elliptics/comments{/number}","issue_comment_url":"https://api.github.com/repos/shaitan/elliptics/issues/comments{/number}","contents_url":"https://api.github.com/repos/shaitan/elliptics/contents/{+path}","compare_url":"https://api.github.com/repos/shaitan/elliptics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shaitan/elliptics/merges","archive_url":"https://api.github.com/repos/shaitan/elliptics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shaitan/elliptics/downloads","issues_url":"https://api.github.com/repos/shaitan/elliptics/issues{/number}","pulls_url":"https://api.github.com/repos/shaitan/elliptics/pulls{/number}","milestones_url":"https://api.github.com/repos/shaitan/elliptics/milestones{/number}","notifications_url":"https://api.github.com/repos/shaitan/elliptics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shaitan/elliptics/labels{/name}","releases_url":"https://api.github.com/repos/shaitan/elliptics/releases{/id}","deployments_url":"https://api.github.com/repos/shaitan/elliptics/deployments","created_at":"2013-05-14T10:48:42Z","updated_at":"2015-04-30T11:11:00Z","pushed_at":"2016-07-13T10:09:17Z","git_url":"git://github.com/shaitan/elliptics.git","ssh_url":"git@github.com:shaitan/elliptics.git","clone_url":"https://github.com/shaitan/elliptics.git","svn_url":"https://github.com/shaitan/elliptics","homepage":null,"size":20327,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"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":"interiorem:master","ref":"master","sha":"34bc4d82b512692450817fe9d1471a93b4793f95","user":{"login":"interiorem","id":17122620,"avatar_url":"https://avatars.githubusercontent.com/u/17122620?v=3","gravatar_id":"","url":"https://api.github.com/users/interiorem","html_url":"https://github.com/interiorem","followers_url":"https://api.github.com/users/interiorem/followers","following_url":"https://api.github.com/users/interiorem/following{/other_user}","gists_url":"https://api.github.com/users/interiorem/gists{/gist_id}","starred_url":"https://api.github.com/users/interiorem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interiorem/subscriptions","organizations_url":"https://api.github.com/users/interiorem/orgs","repos_url":"https://api.github.com/users/interiorem/repos","events_url":"https://api.github.com/users/interiorem/events{/privacy}","received_events_url":"https://api.github.com/users/interiorem/received_events","type":"Organization","site_admin":false},"repo":{"id":51368986,"name":"elliptics","full_name":"interiorem/elliptics","owner":{"login":"interiorem","id":17122620,"avatar_url":"https://avatars.githubusercontent.com/u/17122620?v=3","gravatar_id":"","url":"https://api.github.com/users/interiorem","html_url":"https://github.com/interiorem","followers_url":"https://api.github.com/users/interiorem/followers","following_url":"https://api.github.com/users/interiorem/following{/other_user}","gists_url":"https://api.github.com/users/interiorem/gists{/gist_id}","starred_url":"https://api.github.com/users/interiorem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interiorem/subscriptions","organizations_url":"https://api.github.com/users/interiorem/orgs","repos_url":"https://api.github.com/users/interiorem/repos","events_url":"https://api.github.com/users/interiorem/events{/privacy}","received_events_url":"https://api.github.com/users/interiorem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/interiorem/elliptics","description":"Distributed storage for medium and large objects with streaming support","fork":true,"url":"https://api.github.com/repos/interiorem/elliptics","forks_url":"https://api.github.com/repos/interiorem/elliptics/forks","keys_url":"https://api.github.com/repos/interiorem/elliptics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interiorem/elliptics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interiorem/elliptics/teams","hooks_url":"https://api.github.com/repos/interiorem/elliptics/hooks","issue_events_url":"https://api.github.com/repos/interiorem/elliptics/issues/events{/number}","events_url":"https://api.github.com/repos/interiorem/elliptics/events","assignees_url":"https://api.github.com/repos/interiorem/elliptics/assignees{/user}","branches_url":"https://api.github.com/repos/interiorem/elliptics/branches{/branch}","tags_url":"https://api.github.com/repos/interiorem/elliptics/tags","blobs_url":"https://api.github.com/repos/interiorem/elliptics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interiorem/elliptics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interiorem/elliptics/git/refs{/sha}","trees_url":"https://api.github.com/repos/interiorem/elliptics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interiorem/elliptics/statuses/{sha}","languages_url":"https://api.github.com/repos/interiorem/elliptics/languages","stargazers_url":"https://api.github.com/repos/interiorem/elliptics/stargazers","contributors_url":"https://api.github.com/repos/interiorem/elliptics/contributors","subscribers_url":"https://api.github.com/repos/interiorem/elliptics/subscribers","subscription_url":"https://api.github.com/repos/interiorem/elliptics/subscription","commits_url":"https://api.github.com/repos/interiorem/elliptics/commits{/sha}","git_commits_url":"https://api.github.com/repos/interiorem/elliptics/git/commits{/sha}","comments_url":"https://api.github.com/repos/interiorem/elliptics/comments{/number}","issue_comment_url":"https://api.github.com/repos/interiorem/elliptics/issues/comments{/number}","contents_url":"https://api.github.com/repos/interiorem/elliptics/contents/{+path}","compare_url":"https://api.github.com/repos/interiorem/elliptics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interiorem/elliptics/merges","archive_url":"https://api.github.com/repos/interiorem/elliptics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interiorem/elliptics/downloads","issues_url":"https://api.github.com/repos/interiorem/elliptics/issues{/number}","pulls_url":"https://api.github.com/repos/interiorem/elliptics/pulls{/number}","milestones_url":"https://api.github.com/repos/interiorem/elliptics/milestones{/number}","notifications_url":"https://api.github.com/repos/interiorem/elliptics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interiorem/elliptics/labels{/name}","releases_url":"https://api.github.com/repos/interiorem/elliptics/releases{/id}","deployments_url":"https://api.github.com/repos/interiorem/elliptics/deployments","created_at":"2016-02-09T13:38:50Z","updated_at":"2016-05-18T15:33:06Z","pushed_at":"2016-07-13T10:10:11Z","git_url":"git://github.com/interiorem/elliptics.git","ssh_url":"git@github.com:interiorem/elliptics.git","clone_url":"https://github.com/interiorem/elliptics.git","svn_url":"https://github.com/interiorem/elliptics","homepage":"http://reverbrain.com/elliptics","size":19913,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/59"},"html":{"href":"https://github.com/interiorem/elliptics/pull/59"},"issue":{"href":"https://api.github.com/repos/interiorem/elliptics/issues/59"},"comments":{"href":"https://api.github.com/repos/interiorem/elliptics/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/interiorem/elliptics/statuses/0828d35660722a01ec141c4119836a195c7cb5b9"}}}}
{"actor":{"display_login":"abudnik"}}