Skip to content

Commit

Permalink
doc: add a note about os.cpus() returning an empty list
Browse files Browse the repository at this point in the history
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
  • Loading branch information
codedokode authored and Trott committed Apr 3, 2023
1 parent a00137e commit 7303d96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/os.md
Expand Up @@ -76,6 +76,8 @@ added: v0.3.3
* Returns: {Object\[]}

Returns an array of objects containing information about each logical CPU core.
The array will be empty if no CPU information is available, such as if the
`/proc` filesystem is unavailable.

Check warning on line 80 in doc/api/os.md

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Use "file system" instead of "filesystem"

The properties included on each object include:

Expand Down

0 comments on commit 7303d96

Please sign in to comment.