{"action":"created","issue":{"url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/2","labels_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/2/comments","events_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/2/events","html_url":"https://github.com/seanmonstar/num_cpus/issues/2","id":68052417,"number":2,"title":"num_cpus::get() == 18446744073709551615","user":{"login":"lambdaburrito","id":11442830,"avatar_url":"https://avatars.githubusercontent.com/u/11442830?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdaburrito","html_url":"https://github.com/lambdaburrito","followers_url":"https://api.github.com/users/lambdaburrito/followers","following_url":"https://api.github.com/users/lambdaburrito/following{/other_user}","gists_url":"https://api.github.com/users/lambdaburrito/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdaburrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdaburrito/subscriptions","organizations_url":"https://api.github.com/users/lambdaburrito/orgs","repos_url":"https://api.github.com/users/lambdaburrito/repos","events_url":"https://api.github.com/users/lambdaburrito/events{/privacy}","received_events_url":"https://api.github.com/users/lambdaburrito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-13T09:22:15Z","updated_at":"2015-04-13T15:10:37Z","closed_at":null,"body":"`num_cpus::get()` is totally broken (or my Macbook Air has surpassed the axioms of physics and now has 18,446,744,073,709,551,615 cores). \r\n\r\nThis is braking a lot of APIs so please treat this as urgent! \r\n\r\nI spotted it as I am using nickel.rs and my server wouldn't start and debugged it to find out that Hyper was throwing an arithmetic overflow at `server/mod.rs:90` and it's due to a broken `num_cpus::get()`"},"comment":{"url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/comments/92394439","html_url":"https://github.com/seanmonstar/num_cpus/issues/2#issuecomment-92394439","issue_url":"https://api.github.com/repos/seanmonstar/num_cpus/issues/2","id":92394439,"user":{"login":"seanmonstar","id":51479,"avatar_url":"https://avatars.githubusercontent.com/u/51479?v=3","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T15:10:37Z","updated_at":"2015-04-13T15:10:37Z","body":"Sorry about the breakage. I do not have a Mac, and so tried asking for help\nof people trying the PR. I got one to try it and said it worked, so I\npublished.\n\nlibc does not yet have that const. Hence it's hard-coded and has the const\nin a comment.\n\nOn Mon, Apr 13, 2015, 3:23 AM lambdaburrito <notifications@github.com>\nwrote:\n\n> Also, to fix this in the correct way, we should add a\n> libc::_SC_NPROCESSORS_ONLN rather than hardcoding it.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/seanmonstar/num_cpus/issues/2#issuecomment-92301901>.\n>\n"}}