0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00
denoland-deno/ext/node/ops
Divy Srivastava fffa3804aa
fix(ext/node): Fix os.cpus() on Linux (#27592)
Populate `speed` using current scaling frequency and fix times
multiplier.

Fixes https://github.com/denoland/deno/issues/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>
2025-01-08 22:09:55 +05:30
..
crypto chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
os fix(ext/node): Fix os.cpus() on Linux (#27592) 2025-01-08 22:09:55 +05:30
zlib chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
blocklist.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
buffer.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
fs.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
http.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
http2.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
idna.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
inspector.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
ipc.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
mod.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
perf_hooks.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
process.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
require.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
tls.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
util.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
v8.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
vm.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
vm_internal.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
winerror.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
worker_threads.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00