Comparing version 0.2.1 to 0.2.2
@@ -105,4 +105,7 @@ "use strict"; | ||
if (platform === "linux") { | ||
const output = exec('cat /proc/cpuinfo | grep "physical id" | sort | wc -l'); | ||
amount = parseInt(output.trim(), 10); | ||
const output1 = exec('cat /proc/cpuinfo | grep "physical id" | sort |uniq | wc -l'); | ||
const output2 = exec('cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l'); | ||
const physicalCpuAmount = parseInt(output1.trim(), 10); | ||
const physicalCoreAmount = parseInt(output2.trim(), 10); | ||
amount = physicalCpuAmount * physicalCoreAmount; | ||
} else if (platform === "darwin") { | ||
@@ -109,0 +112,0 @@ const output = exec("sysctl -n hw.physicalcpu_max"); |
{ | ||
"name": "tinypool", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A minimal and tiny Node.js Worker Thread Pool implementation, a fork of piscina, but with fewer features", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -16,3 +16,5 @@ # Tinypool - the node.js worker pool ๐งต | ||
*In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an [RFC](https://github.com/tinylibs/rfcs)* | ||
## Docs | ||
Read **[full docs](https://github.com/aslemammad/tinypool#readme)** on GitHub. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39982
1186
20