Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ext/node): Fix
os.cpus()
on Linux (#27592)
Populate `speed` using current scaling frequency and fix times multiplier. Fixes #27555 <table> <tr> <th>Node.js</th> <th>Deno</th> </tr> <tr> <td> ``` > os.cpus() [ { model: 'AMD Ryzen 5 7530U with Radeon Graphics', speed: 1396, times: { user: 1769930, nice: 20, sys: 525630, idle: 41325700, irq: 110060 } }, ``` </td> <td> ``` > os.cpus() [ { model: "AMD Ryzen 5 7530U with Radeon Graphics", speed: 1630, times: [Object: null prototype] { user: 1795620, nice: 20, sys: 537840, idle: 41589390, irq: 111230 } }, ``` </td> </tr> </table>
- Loading branch information