You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Linux (tested on Ubuntu 20.04.6 LTS and 22.04.3 LTS), the os.cpus() polyfill seems to have an issue with [].speed(compared to node.js implementation)
Steps to reproduce:
c.ts:
importosfrom"node:os";console.log(os.cpus());
Running this with deno (v 2.1.4) will give the following output:
Version: Deno 2.1.4
OS: Linux (Ubuntu 20.04.6 LTS)
Function: Node polyfill os.cpus()
In Linux (tested on Ubuntu 20.04.6 LTS and 22.04.3 LTS), the
os.cpus()
polyfill seems to have an issue with[].speed
(compared to node.js implementation)Steps to reproduce:
c.ts
:Running this with deno (v 2.1.4) will give the following output:
deno -A c.ts [ [Object: null prototype] { model: "Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz", speed: 0, times: [Object: null prototype] { user: 55050465, nice: 16282, sys: 16903204, idle: 13698348421, irq: 6010237 } }, ... ]
cpus[i].speed
is 0 / undefinedIn Node.js we have
cpus[i].speed
is defined and not 0The text was updated successfully, but these errors were encountered: