-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add a note about os.cpus() returning an empty list #47363
Conversation
Rather than going into platform-specific details, I'd change this line:
And append something like:
Node gets its data from libuv and libuv doesn't document it reads from /proc so it'd be odd to mention that in our docs. OTOH, mentioning /proc does give readers a hint to mount procfs. (On the other other hand, that's unlikely to be actionable on Android.) Let's say I'm -0 on the current wording. |
dcdef23
to
7303d96
Compare
@bnoordhuis I've reworked this along the lines of your suggest. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"file system" but otherwise LGTM :)
Commit Queue failed- Loading data for nodejs/node/pull/47363 ✔ Done loading data for nodejs/node/pull/47363 ----------------------------------- PR info ------------------------------------ Title doc: add a note about os.cpus() returning an empty list (#47363) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch codedokode:codedokode-patch-1 -> nodejs:main Labels doc, os, commit-queue-squash Commits 2 - doc: add a note about os.cpus() returning an empty list - Update doc/api/os.md Committers 2 - Rich Trott - GitHub PR-URL: https://github.com/nodejs/node/pull/47363 Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/47363 Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott -------------------------------------------------------------------------------- ℹ This PR was created on Sat, 01 Apr 2023 12:39:35 GMT ✔ Approvals: 2 ✔ - Ben Noordhuis (@bnoordhuis) (TSC): https://github.com/nodejs/node/pull/47363#pullrequestreview-1370467845 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/47363#pullrequestreview-1371525436 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient ⚠ PR author is a new contributor: @codedokode(codedokode@gmail.com) ⚠ - commit 05afb4639190 is authored by info@bnoordhuis.nl -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/4610991181 |
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: nodejs#47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
05afb46
to
04674f6
Compare
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: nodejs#47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
04674f6
to
dfbad86
Compare
Landed in dfbad86 |
Thanks for the contribution! 🚀 |
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: #47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11 PR-URL: nodejs#47363 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
It is not obvious that in some cases cpus() returns an empty list and this has caused a bug before: isaacs/promise-call-limit#11