diff options
author | 2023-02-03 18:13:33 -0800 | |
---|---|---|
committer | 2023-02-03 18:13:33 -0800 | |
commit | a2fd20e5c02c8a47cbb8fce7852e03dcbaf69877 (patch) | |
tree | 9b128760098acc04e50c570f02855b393897508f /src/bun.js/bindings/ScriptExecutionContext.cpp | |
parent | de613baf81bfaf524818cb72811e13ad9a3765ff (diff) | |
download | bun-a2fd20e5c02c8a47cbb8fce7852e03dcbaf69877.tar.gz bun-a2fd20e5c02c8a47cbb8fce7852e03dcbaf69877.tar.zst bun-a2fd20e5c02c8a47cbb8fce7852e03dcbaf69877.zip |
Implement os.cpus() for Linux (#1977)
* Implement os.cpus() for Linux
`os.cpus()` currently returns an empty array for all platforms. This PR implements full functionality for Linux and has been tested on x86-64. Other OSes will continue to return an empty array.
Note that Linux on Arm64 may report the CPU model differently; if this is the case the CPU model will currently be reported as "unknown". As I do not have Arm64 hardware to verify and develop against, a todo has been left in the code.
* resolve issues from review
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.cpp')
0 files changed, 0 insertions, 0 deletions