{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3status/issues/157","repository_url":"https://api.github.com/repos/i3/i3status","labels_url":"https://api.github.com/repos/i3/i3status/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3status/issues/157/comments","events_url":"https://api.github.com/repos/i3/i3status/issues/157/events","html_url":"https://github.com/i3/i3status/issues/157","id":172094317,"number":157,"title":"Incorrect battery values for users using last full capacity with ampere to watt conversion.","user":{"login":"tnnn","id":8307255,"avatar_url":"https://avatars.githubusercontent.com/u/8307255?v=3","gravatar_id":"","url":"https://api.github.com/users/tnnn","html_url":"https://github.com/tnnn","followers_url":"https://api.github.com/users/tnnn/followers","following_url":"https://api.github.com/users/tnnn/following{/other_user}","gists_url":"https://api.github.com/users/tnnn/gists{/gist_id}","starred_url":"https://api.github.com/users/tnnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnnn/subscriptions","organizations_url":"https://api.github.com/users/tnnn/orgs","repos_url":"https://api.github.com/users/tnnn/repos","events_url":"https://api.github.com/users/tnnn/events{/privacy}","received_events_url":"https://api.github.com/users/tnnn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/i3/i3status/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-19T09:46:55Z","updated_at":"2016-08-19T09:54:08Z","closed_at":null,"body":"After the refactoring made in d74bc90bfe8ac11ba3d6ac5326d95dedd10c39c3, the logic behind last full capacity calculation changed, breaking it for users that who were also using ampere to watt conversion.\r\n\r\nBefore the change, there was only `full_design` field. Its value was assigned depending on the `last_full_capacity` option - it was either full design or last full capacity reported. If a ampere to watt conversion was required, `full_design` was correctly converted.\r\n\r\nHowever, since after the change, there are two separate fields for full design capacity (`full_design`) and last full capacity (`full_last`). Unfortunately, if an ampere to watt conversion is required, only the `full_design` gets converted. If we try to use `full_last`, the units don't match and we get incorrect results (way over 100%, which get capped at 100% battery status)."},"comment":{"url":"https://api.github.com/repos/i3/i3status/issues/comments/240977336","html_url":"https://github.com/i3/i3status/issues/157#issuecomment-240977336","issue_url":"https://api.github.com/repos/i3/i3status/issues/157","id":240977336,"user":{"login":"Airblader","id":2392216,"avatar_url":"https://avatars.githubusercontent.com/u/2392216?v=3","gravatar_id":"","url":"https://api.github.com/users/Airblader","html_url":"https://github.com/Airblader","followers_url":"https://api.github.com/users/Airblader/followers","following_url":"https://api.github.com/users/Airblader/following{/other_user}","gists_url":"https://api.github.com/users/Airblader/gists{/gist_id}","starred_url":"https://api.github.com/users/Airblader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Airblader/subscriptions","organizations_url":"https://api.github.com/users/Airblader/orgs","repos_url":"https://api.github.com/users/Airblader/repos","events_url":"https://api.github.com/users/Airblader/events{/privacy}","received_events_url":"https://api.github.com/users/Airblader/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T09:54:08Z","updated_at":"2016-08-19T09:54:08Z","body":"Thanks. :-)"}}
{"actor":{"display_login":"Airblader"}}