{"action":"created","issue":{"url":"https://api.github.com/repos/i3/i3status/issues/308","repository_url":"https://api.github.com/repos/i3/i3status","labels_url":"https://api.github.com/repos/i3/i3status/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/i3/i3status/issues/308/comments","events_url":"https://api.github.com/repos/i3/i3status/issues/308/events","html_url":"https://github.com/i3/i3status/issues/308","id":362331497,"node_id":"MDU6SXNzdWUzNjIzMzE0OTc=","number":308,"title":"CPU Usage Fails when CPU Numbers aren't Consecutive","user":{"login":"TwentyFourD","id":43452707,"node_id":"MDQ6VXNlcjQzNDUyNzA3","avatar_url":"https://avatars0.githubusercontent.com/u/43452707?v=4","gravatar_id":"","url":"https://api.github.com/users/TwentyFourD","html_url":"https://github.com/TwentyFourD","followers_url":"https://api.github.com/users/TwentyFourD/followers","following_url":"https://api.github.com/users/TwentyFourD/following{/other_user}","gists_url":"https://api.github.com/users/TwentyFourD/gists{/gist_id}","starred_url":"https://api.github.com/users/TwentyFourD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwentyFourD/subscriptions","organizations_url":"https://api.github.com/users/TwentyFourD/orgs","repos_url":"https://api.github.com/users/TwentyFourD/repos","events_url":"https://api.github.com/users/TwentyFourD/events{/privacy}","received_events_url":"https://api.github.com/users/TwentyFourD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-20T19:27:43Z","updated_at":"2018-09-22T16:43:08Z","closed_at":null,"author_association":"NONE","body":"I have a Gemini running Debian which disables CPUs to save battery. When the CPUs are enabled they aren't necessarily re-enabled in order so /proc/stat might look like:\r\n\r\ncpu ...\r\ncpu0 ...\r\ncpu4 ...\r\ncpu5 ...\r\n...\r\n\r\nprint_cpu_usage expects the cpu lines to be contain consecutively numbered cpus so it doesn't work on the Gemini. I am currently running a work around which requires you to specify the max number of CPUs in the config so isn't great (but works okay)."},"comment":{"url":"https://api.github.com/repos/i3/i3status/issues/comments/423756921","html_url":"https://github.com/i3/i3status/issues/308#issuecomment-423756921","issue_url":"https://api.github.com/repos/i3/i3status/issues/308","id":423756921,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzc1NjkyMQ==","user":{"login":"orestisf1993","id":5778622,"node_id":"MDQ6VXNlcjU3Nzg2MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/5778622?v=4","gravatar_id":"","url":"https://api.github.com/users/orestisf1993","html_url":"https://github.com/orestisf1993","followers_url":"https://api.github.com/users/orestisf1993/followers","following_url":"https://api.github.com/users/orestisf1993/following{/other_user}","gists_url":"https://api.github.com/users/orestisf1993/gists{/gist_id}","starred_url":"https://api.github.com/users/orestisf1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orestisf1993/subscriptions","organizations_url":"https://api.github.com/users/orestisf1993/orgs","repos_url":"https://api.github.com/users/orestisf1993/repos","events_url":"https://api.github.com/users/orestisf1993/events{/privacy}","received_events_url":"https://api.github.com/users/orestisf1993/received_events","type":"User","site_admin":false},"created_at":"2018-09-22T16:43:08Z","updated_at":"2018-09-22T16:43:08Z","author_association":"MEMBER","body":"Yes. A (complete) simple workflow would be to:\r\n\r\n1. Press the fork button\r\n2. `git clone 'https://github.com/TwentyFourD/i3status'`\r\n3. `git checkout -b NonConsecutiveCPUs`\r\n4. `git add -p` (to review your changes as you add them, making sure you don't commit irrelevant changes) or simply `git add src/print_cpu_usage.c`\r\n5. `git commit --verbose` and then put the commit title in the first line, leave an empty line and then write the commit body in the next line (can simply be \"Fixes #308\")\r\n6. `git push`\r\n7. Press the pull request button from your repo or the i3status repo"}}
{"actor":{"display_login":"orestisf1993"}}