Commit 4b03662
Work around os.cpus() returning an empty array on unsupported platforms
`os.cpus()` can return empty arrays on platforms not officially supported by Node.js. Use 1 as a minimum.
See <nodejs/node#38190>.
Co-authored-by: Mark Wubben <[email protected]>1 parent 02f626f commit 4b03662
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
255 | 253 | | |
256 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
0 commit comments