{"action":"created","issue":{"url":"https://api.github.com/repos/dylanaraps/neofetch/issues/380","repository_url":"https://api.github.com/repos/dylanaraps/neofetch","labels_url":"https://api.github.com/repos/dylanaraps/neofetch/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/dylanaraps/neofetch/issues/380/comments","events_url":"https://api.github.com/repos/dylanaraps/neofetch/issues/380/events","html_url":"https://github.com/dylanaraps/neofetch/pull/380","id":184361993,"number":380,"title":"Rewrite uptime for Linux/Windows to match macOS/BSD","user":{"login":"dylanaraps","id":6799467,"avatar_url":"https://avatars.githubusercontent.com/u/6799467?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanaraps","html_url":"https://github.com/dylanaraps","followers_url":"https://api.github.com/users/dylanaraps/followers","following_url":"https://api.github.com/users/dylanaraps/following{/other_user}","gists_url":"https://api.github.com/users/dylanaraps/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanaraps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanaraps/subscriptions","organizations_url":"https://api.github.com/users/dylanaraps/orgs","repos_url":"https://api.github.com/users/dylanaraps/repos","events_url":"https://api.github.com/users/dylanaraps/events{/privacy}","received_events_url":"https://api.github.com/users/dylanaraps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dylanaraps/neofetch/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T23:02:58Z","updated_at":"2016-10-20T23:04:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dylanaraps/neofetch/pulls/380","html_url":"https://github.com/dylanaraps/neofetch/pull/380","diff_url":"https://github.com/dylanaraps/neofetch/pull/380.diff","patch_url":"https://github.com/dylanaraps/neofetch/pull/380.patch"},"body":"This PR aims to remove issues on Linux based systems where there are an endless amount of different `uptime` commands all with a different output format. Instead of using the `uptime` command we now parse `/proc/uptime` which provides us with the uptime in seconds. We then convert those seconds into days, hours and minutes.\r\n\r\nThis is how neofetch calculates uptime on macOS/BSD and this allows us to merge both functions removing ~20 lines from the script. \r\n\r\n@iandrewt, can you test this on macOS?"},"comment":{"url":"https://api.github.com/repos/dylanaraps/neofetch/issues/comments/255251826","html_url":"https://github.com/dylanaraps/neofetch/pull/380#issuecomment-255251826","issue_url":"https://api.github.com/repos/dylanaraps/neofetch/issues/380","id":255251826,"user":{"login":"dylanaraps","id":6799467,"avatar_url":"https://avatars.githubusercontent.com/u/6799467?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanaraps","html_url":"https://github.com/dylanaraps","followers_url":"https://api.github.com/users/dylanaraps/followers","following_url":"https://api.github.com/users/dylanaraps/following{/other_user}","gists_url":"https://api.github.com/users/dylanaraps/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanaraps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanaraps/subscriptions","organizations_url":"https://api.github.com/users/dylanaraps/orgs","repos_url":"https://api.github.com/users/dylanaraps/repos","events_url":"https://api.github.com/users/dylanaraps/events{/privacy}","received_events_url":"https://api.github.com/users/dylanaraps/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T23:04:13Z","updated_at":"2016-10-20T23:04:13Z","body":"Bug(?) on Windows\r\n\r\n```sh\r\nUptime: up 15 days, 361 hours, 37 minutes\r\n```"}}
{"actor":{"display_login":"dylanaraps"}}