{"action":"reopened","number":137,"pull_request":{"url":"https://api.github.com/repos/restic/restic/pulls/137","id":34109737,"html_url":"https://github.com/restic/restic/pull/137","diff_url":"https://github.com/restic/restic/pull/137.diff","patch_url":"https://github.com/restic/restic/pull/137.patch","issue_url":"https://api.github.com/repos/restic/restic/issues/137","number":137,"state":"open","locked":false,"title":"Fix floating point presentation","user":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"body":"If your backup is 0 bytes, you can see this:\r\n```\r\n[0:00] NaN%  0B/s  0B / 0B  1 / 0 items  ETA 0:00\r\nduration: 0:00, NaNMiB/s\r\n```\r\nand if your backups is >0 bytes, but very fast, you see this:\r\n```\r\nduration: 0:00, +InfMiB/s\r\n```\r\n\r\nThis PR fixes that by avoiding floating point divisions by 0. If a percentage is calculated and the denominator is 0, just return an empty string. The \"Inf\" is fixed by not converting the number of seconds to an int before the division.","created_at":"2015-04-25T17:25:39Z","updated_at":"2015-04-26T05:19:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b5bc03bb9764b134c792e95e01692121cad5a73","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/restic/restic/pulls/137/commits","review_comments_url":"https://api.github.com/repos/restic/restic/pulls/137/comments","review_comment_url":"https://api.github.com/repos/restic/restic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/restic/restic/issues/137/comments","statuses_url":"https://api.github.com/repos/restic/restic/statuses/6c776468ab9ef805e0d1d2b6ba89064c3dd9c6a5","head":{"label":"fw42:fix_nan_and_inf","ref":"fix_nan_and_inf","sha":"6c776468ab9ef805e0d1d2b6ba89064c3dd9c6a5","user":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"repo":{"id":34229267,"name":"restic","full_name":"fw42/restic","owner":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fw42/restic","description":"restic backup program","fork":true,"url":"https://api.github.com/repos/fw42/restic","forks_url":"https://api.github.com/repos/fw42/restic/forks","keys_url":"https://api.github.com/repos/fw42/restic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fw42/restic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fw42/restic/teams","hooks_url":"https://api.github.com/repos/fw42/restic/hooks","issue_events_url":"https://api.github.com/repos/fw42/restic/issues/events{/number}","events_url":"https://api.github.com/repos/fw42/restic/events","assignees_url":"https://api.github.com/repos/fw42/restic/assignees{/user}","branches_url":"https://api.github.com/repos/fw42/restic/branches{/branch}","tags_url":"https://api.github.com/repos/fw42/restic/tags","blobs_url":"https://api.github.com/repos/fw42/restic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fw42/restic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fw42/restic/git/refs{/sha}","trees_url":"https://api.github.com/repos/fw42/restic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fw42/restic/statuses/{sha}","languages_url":"https://api.github.com/repos/fw42/restic/languages","stargazers_url":"https://api.github.com/repos/fw42/restic/stargazers","contributors_url":"https://api.github.com/repos/fw42/restic/contributors","subscribers_url":"https://api.github.com/repos/fw42/restic/subscribers","subscription_url":"https://api.github.com/repos/fw42/restic/subscription","commits_url":"https://api.github.com/repos/fw42/restic/commits{/sha}","git_commits_url":"https://api.github.com/repos/fw42/restic/git/commits{/sha}","comments_url":"https://api.github.com/repos/fw42/restic/comments{/number}","issue_comment_url":"https://api.github.com/repos/fw42/restic/issues/comments{/number}","contents_url":"https://api.github.com/repos/fw42/restic/contents/{+path}","compare_url":"https://api.github.com/repos/fw42/restic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fw42/restic/merges","archive_url":"https://api.github.com/repos/fw42/restic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fw42/restic/downloads","issues_url":"https://api.github.com/repos/fw42/restic/issues{/number}","pulls_url":"https://api.github.com/repos/fw42/restic/pulls{/number}","milestones_url":"https://api.github.com/repos/fw42/restic/milestones{/number}","notifications_url":"https://api.github.com/repos/fw42/restic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fw42/restic/labels{/name}","releases_url":"https://api.github.com/repos/fw42/restic/releases{/id}","created_at":"2015-04-20T00:03:49Z","updated_at":"2015-04-24T23:50:07Z","pushed_at":"2015-04-26T05:19:35Z","git_url":"git://github.com/fw42/restic.git","ssh_url":"git@github.com:fw42/restic.git","clone_url":"https://github.com/fw42/restic.git","svn_url":"https://github.com/fw42/restic","homepage":"","size":2462,"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":"restic:master","ref":"master","sha":"87a1946417818c50354153ed81cab5248abf18cd","user":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"repo":{"id":19205896,"name":"restic","full_name":"restic/restic","owner":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/restic/restic","description":"restic backup program","fork":false,"url":"https://api.github.com/repos/restic/restic","forks_url":"https://api.github.com/repos/restic/restic/forks","keys_url":"https://api.github.com/repos/restic/restic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/restic/restic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/restic/restic/teams","hooks_url":"https://api.github.com/repos/restic/restic/hooks","issue_events_url":"https://api.github.com/repos/restic/restic/issues/events{/number}","events_url":"https://api.github.com/repos/restic/restic/events","assignees_url":"https://api.github.com/repos/restic/restic/assignees{/user}","branches_url":"https://api.github.com/repos/restic/restic/branches{/branch}","tags_url":"https://api.github.com/repos/restic/restic/tags","blobs_url":"https://api.github.com/repos/restic/restic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/restic/restic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/restic/restic/git/refs{/sha}","trees_url":"https://api.github.com/repos/restic/restic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/restic/restic/statuses/{sha}","languages_url":"https://api.github.com/repos/restic/restic/languages","stargazers_url":"https://api.github.com/repos/restic/restic/stargazers","contributors_url":"https://api.github.com/repos/restic/restic/contributors","subscribers_url":"https://api.github.com/repos/restic/restic/subscribers","subscription_url":"https://api.github.com/repos/restic/restic/subscription","commits_url":"https://api.github.com/repos/restic/restic/commits{/sha}","git_commits_url":"https://api.github.com/repos/restic/restic/git/commits{/sha}","comments_url":"https://api.github.com/repos/restic/restic/comments{/number}","issue_comment_url":"https://api.github.com/repos/restic/restic/issues/comments{/number}","contents_url":"https://api.github.com/repos/restic/restic/contents/{+path}","compare_url":"https://api.github.com/repos/restic/restic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/restic/restic/merges","archive_url":"https://api.github.com/repos/restic/restic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/restic/restic/downloads","issues_url":"https://api.github.com/repos/restic/restic/issues{/number}","pulls_url":"https://api.github.com/repos/restic/restic/pulls{/number}","milestones_url":"https://api.github.com/repos/restic/restic/milestones{/number}","notifications_url":"https://api.github.com/repos/restic/restic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/restic/restic/labels{/name}","releases_url":"https://api.github.com/repos/restic/restic/releases{/id}","created_at":"2014-04-27T14:07:58Z","updated_at":"2015-04-25T09:12:33Z","pushed_at":"2015-04-26T01:55:44Z","git_url":"git://github.com/restic/restic.git","ssh_url":"git@github.com:restic/restic.git","clone_url":"https://github.com/restic/restic.git","svn_url":"https://github.com/restic/restic","homepage":"","size":3548,"stargazers_count":110,"watchers_count":110,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":71,"forks":12,"open_issues":71,"watchers":110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/restic/restic/pulls/137"},"html":{"href":"https://github.com/restic/restic/pull/137"},"issue":{"href":"https://api.github.com/repos/restic/restic/issues/137"},"comments":{"href":"https://api.github.com/repos/restic/restic/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/restic/restic/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/restic/restic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/restic/restic/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/restic/restic/statuses/6c776468ab9ef805e0d1d2b6ba89064c3dd9c6a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":10,"changed_files":1}}