{"action":"created","comment":{"url":"https://api.github.com/repos/ncw/rclone/pulls/comments/89125698","pull_request_review_id":9673000,"id":89125698,"diff_hunk":"@@ -129,23 +131,37 @@ func (s *StatsInfo) String() string {\n \t}\n \tdtRounded := dt - (dt % (time.Second / 10))\n \tbuf := &bytes.Buffer{}\n+\t\n+\ttransferVolume, transferSpeed := s.bytes, speed\n+\ttransferVolumeUnit, transferSpeedUnit := \"Bytes\", \"Bytes/s\"\n+\n+\tif *statsBps {\n+\t\ttransferVolume, transferSpeed = s.bytes*8, speed*8\n+\t  \ttransferVolumeUnit, transferSpeedUnit = \"Bits\", \"Bits/s\"\n+\t}\n+\t\n \tfmt.Fprintf(buf, `\n-Transferred:   %10s (%s)\n-Errors:        %10d\n-Checks:        %10d\n-Transferred:   %10d\n-Elapsed time:  %10v\n+%-20s: %-10s (%-s)\n+%-20s: %-10d\n+%-20s: %-10d\n+%-20s: %-10d\n+%-20s: %-10v\n `,\n-\t\tSizeSuffix(s.bytes).Unit(\"Bytes\"), SizeSuffix(speed).Unit(\"Bytes/s\"),\n+\t\t\"Transferred\",\n+\t\tSizeSuffix(transferVolume).Unit(transferVolumeUnit), SizeSuffix(transferSpeed).Unit(transferSpeedUnit),","path":"fs/accounting.go","position":52,"original_position":52,"commit_id":"8d00fef1cf15953d364822d544139fd3e9404852","original_commit_id":"8d00fef1cf15953d364822d544139fd3e9404852","user":{"login":"ncw","id":536803,"avatar_url":"https://avatars.githubusercontent.com/u/536803?v=3","gravatar_id":"","url":"https://api.github.com/users/ncw","html_url":"https://github.com/ncw","followers_url":"https://api.github.com/users/ncw/followers","following_url":"https://api.github.com/users/ncw/following{/other_user}","gists_url":"https://api.github.com/users/ncw/gists{/gist_id}","starred_url":"https://api.github.com/users/ncw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncw/subscriptions","organizations_url":"https://api.github.com/users/ncw/orgs","repos_url":"https://api.github.com/users/ncw/repos","events_url":"https://api.github.com/users/ncw/events{/privacy}","received_events_url":"https://api.github.com/users/ncw/received_events","type":"User","site_admin":false},"body":"To be extremely pedantic bit rates are almost always specified in SI units rather than the binary units used by SizeSuffix.  So 1 Mbit/s would normally be 1,000,000 bit/s rather than 1,048,576 bits/s.\r\n\r\nI suggest we don't fix this though, instead document it!","created_at":"2016-11-22T14:28:44Z","updated_at":"2016-11-22T14:31:22Z","html_url":"https://github.com/ncw/rclone/pull/903#discussion_r89125698","pull_request_url":"https://api.github.com/repos/ncw/rclone/pulls/903","_links":{"self":{"href":"https://api.github.com/repos/ncw/rclone/pulls/comments/89125698"},"html":{"href":"https://github.com/ncw/rclone/pull/903#discussion_r89125698"},"pull_request":{"href":"https://api.github.com/repos/ncw/rclone/pulls/903"}}},"pull_request":{"url":"https://api.github.com/repos/ncw/rclone/pulls/903","id":94745831,"html_url":"https://github.com/ncw/rclone/pull/903","diff_url":"https://github.com/ncw/rclone/pull/903.diff","patch_url":"https://github.com/ncw/rclone/pull/903.patch","issue_url":"https://api.github.com/repos/ncw/rclone/issues/903","number":903,"state":"open","locked":false,"title":"couple of changes around --stats flag","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"body":"- Added example to `--stats` flag to make it more obvious what are syntax for duration is.  \r\n\r\n- Added `--statsbps` option to output stats in bits per second. I find this easier to monitor the speed of file transfers and coorelate them to my available bandwidth. e.g. my home broadband is 100Mbit and my VPS uplink is 1000Mbit so viewing output in Bits/s, KBits/s and MBits/s is just easier. \r\n\r\nExample of aligned output\r\n\r\n```\r\n2016/11/22 11:45:49\r\nTransferred         : 60.000 MBits (2.683 MBits/s)\r\nErrors              : 0\r\nChecks              : 0\r\nTransferred         : 0\r\nElapsed time        : 22.3s\r\nTransferring        :\r\n*                     Learning Couchbase.pdf 33% done. avg: 2.000 MBits/s, cur: 1.292 MBits/s. ETA: 49s\r\n*                     Learning Flask Framework.pdf 30% done. avg: 1.805 MBits/s, cur: 1.145 MBits/s. ETA: 55s\r\n```","created_at":"2016-11-22T04:20:19Z","updated_at":"2016-11-22T14:31:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b86cbb9e3e7a2c9bc9684b8119c02fe28baca940","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ncw/rclone/pulls/903/commits","review_comments_url":"https://api.github.com/repos/ncw/rclone/pulls/903/comments","review_comment_url":"https://api.github.com/repos/ncw/rclone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ncw/rclone/issues/903/comments","statuses_url":"https://api.github.com/repos/ncw/rclone/statuses/8d00fef1cf15953d364822d544139fd3e9404852","head":{"label":"thechile:master","ref":"master","sha":"8d00fef1cf15953d364822d544139fd3e9404852","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"repo":{"id":74431729,"name":"rclone","full_name":"thechile/rclone","owner":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thechile/rclone","description":"\"rsync for cloud storage\" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files","fork":true,"url":"https://api.github.com/repos/thechile/rclone","forks_url":"https://api.github.com/repos/thechile/rclone/forks","keys_url":"https://api.github.com/repos/thechile/rclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thechile/rclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thechile/rclone/teams","hooks_url":"https://api.github.com/repos/thechile/rclone/hooks","issue_events_url":"https://api.github.com/repos/thechile/rclone/issues/events{/number}","events_url":"https://api.github.com/repos/thechile/rclone/events","assignees_url":"https://api.github.com/repos/thechile/rclone/assignees{/user}","branches_url":"https://api.github.com/repos/thechile/rclone/branches{/branch}","tags_url":"https://api.github.com/repos/thechile/rclone/tags","blobs_url":"https://api.github.com/repos/thechile/rclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thechile/rclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thechile/rclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/thechile/rclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thechile/rclone/statuses/{sha}","languages_url":"https://api.github.com/repos/thechile/rclone/languages","stargazers_url":"https://api.github.com/repos/thechile/rclone/stargazers","contributors_url":"https://api.github.com/repos/thechile/rclone/contributors","subscribers_url":"https://api.github.com/repos/thechile/rclone/subscribers","subscription_url":"https://api.github.com/repos/thechile/rclone/subscription","commits_url":"https://api.github.com/repos/thechile/rclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/thechile/rclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/thechile/rclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/thechile/rclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/thechile/rclone/contents/{+path}","compare_url":"https://api.github.com/repos/thechile/rclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thechile/rclone/merges","archive_url":"https://api.github.com/repos/thechile/rclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thechile/rclone/downloads","issues_url":"https://api.github.com/repos/thechile/rclone/issues{/number}","pulls_url":"https://api.github.com/repos/thechile/rclone/pulls{/number}","milestones_url":"https://api.github.com/repos/thechile/rclone/milestones{/number}","notifications_url":"https://api.github.com/repos/thechile/rclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thechile/rclone/labels{/name}","releases_url":"https://api.github.com/repos/thechile/rclone/releases{/id}","deployments_url":"https://api.github.com/repos/thechile/rclone/deployments","created_at":"2016-11-22T03:46:08Z","updated_at":"2016-11-22T03:46:11Z","pushed_at":"2016-11-22T04:04:06Z","git_url":"git://github.com/thechile/rclone.git","ssh_url":"git@github.com:thechile/rclone.git","clone_url":"https://github.com/thechile/rclone.git","svn_url":"https://github.com/thechile/rclone","homepage":"http://rclone.org","size":28808,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"ncw:master","ref":"master","sha":"c41b67ea0889e14a56c9a8dec28d8d7050b233e9","user":{"login":"ncw","id":536803,"avatar_url":"https://avatars.githubusercontent.com/u/536803?v=3","gravatar_id":"","url":"https://api.github.com/users/ncw","html_url":"https://github.com/ncw","followers_url":"https://api.github.com/users/ncw/followers","following_url":"https://api.github.com/users/ncw/following{/other_user}","gists_url":"https://api.github.com/users/ncw/gists{/gist_id}","starred_url":"https://api.github.com/users/ncw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncw/subscriptions","organizations_url":"https://api.github.com/users/ncw/orgs","repos_url":"https://api.github.com/users/ncw/repos","events_url":"https://api.github.com/users/ncw/events{/privacy}","received_events_url":"https://api.github.com/users/ncw/received_events","type":"User","site_admin":false},"repo":{"id":17803236,"name":"rclone","full_name":"ncw/rclone","owner":{"login":"ncw","id":536803,"avatar_url":"https://avatars.githubusercontent.com/u/536803?v=3","gravatar_id":"","url":"https://api.github.com/users/ncw","html_url":"https://github.com/ncw","followers_url":"https://api.github.com/users/ncw/followers","following_url":"https://api.github.com/users/ncw/following{/other_user}","gists_url":"https://api.github.com/users/ncw/gists{/gist_id}","starred_url":"https://api.github.com/users/ncw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncw/subscriptions","organizations_url":"https://api.github.com/users/ncw/orgs","repos_url":"https://api.github.com/users/ncw/repos","events_url":"https://api.github.com/users/ncw/events{/privacy}","received_events_url":"https://api.github.com/users/ncw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ncw/rclone","description":"\"rsync for cloud storage\" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files","fork":false,"url":"https://api.github.com/repos/ncw/rclone","forks_url":"https://api.github.com/repos/ncw/rclone/forks","keys_url":"https://api.github.com/repos/ncw/rclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ncw/rclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ncw/rclone/teams","hooks_url":"https://api.github.com/repos/ncw/rclone/hooks","issue_events_url":"https://api.github.com/repos/ncw/rclone/issues/events{/number}","events_url":"https://api.github.com/repos/ncw/rclone/events","assignees_url":"https://api.github.com/repos/ncw/rclone/assignees{/user}","branches_url":"https://api.github.com/repos/ncw/rclone/branches{/branch}","tags_url":"https://api.github.com/repos/ncw/rclone/tags","blobs_url":"https://api.github.com/repos/ncw/rclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ncw/rclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ncw/rclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/ncw/rclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ncw/rclone/statuses/{sha}","languages_url":"https://api.github.com/repos/ncw/rclone/languages","stargazers_url":"https://api.github.com/repos/ncw/rclone/stargazers","contributors_url":"https://api.github.com/repos/ncw/rclone/contributors","subscribers_url":"https://api.github.com/repos/ncw/rclone/subscribers","subscription_url":"https://api.github.com/repos/ncw/rclone/subscription","commits_url":"https://api.github.com/repos/ncw/rclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/ncw/rclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/ncw/rclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/ncw/rclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/ncw/rclone/contents/{+path}","compare_url":"https://api.github.com/repos/ncw/rclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ncw/rclone/merges","archive_url":"https://api.github.com/repos/ncw/rclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ncw/rclone/downloads","issues_url":"https://api.github.com/repos/ncw/rclone/issues{/number}","pulls_url":"https://api.github.com/repos/ncw/rclone/pulls{/number}","milestones_url":"https://api.github.com/repos/ncw/rclone/milestones{/number}","notifications_url":"https://api.github.com/repos/ncw/rclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ncw/rclone/labels{/name}","releases_url":"https://api.github.com/repos/ncw/rclone/releases{/id}","deployments_url":"https://api.github.com/repos/ncw/rclone/deployments","created_at":"2014-03-16T16:19:57Z","updated_at":"2016-11-22T12:04:27Z","pushed_at":"2016-11-22T04:20:19Z","git_url":"git://github.com/ncw/rclone.git","ssh_url":"git@github.com:ncw/rclone.git","clone_url":"https://github.com/ncw/rclone.git","svn_url":"https://github.com/ncw/rclone","homepage":"http://rclone.org","size":36578,"stargazers_count":4296,"watchers_count":4296,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":220,"mirror_url":null,"open_issues_count":236,"forks":220,"open_issues":236,"watchers":4296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ncw/rclone/pulls/903"},"html":{"href":"https://github.com/ncw/rclone/pull/903"},"issue":{"href":"https://api.github.com/repos/ncw/rclone/issues/903"},"comments":{"href":"https://api.github.com/repos/ncw/rclone/issues/903/comments"},"review_comments":{"href":"https://api.github.com/repos/ncw/rclone/pulls/903/comments"},"review_comment":{"href":"https://api.github.com/repos/ncw/rclone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ncw/rclone/pulls/903/commits"},"statuses":{"href":"https://api.github.com/repos/ncw/rclone/statuses/8d00fef1cf15953d364822d544139fd3e9404852"}}}}
{"actor":{"display_login":"ncw"}}