mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-20 15:35:51 +08:00
Minor syntax cleanups
This commit is contained in:
@@ -61,11 +61,11 @@ export default new class Utils {
|
||||
|
||||
getCpuCores() {
|
||||
let detectedCores = 0
|
||||
// Try to detect the number of physical cores. This is a slightly different
|
||||
// technique vs what I've seen in other places, which seem to mostly depend
|
||||
// Try to detect the number of physical cores. This is a slightly different
|
||||
// technique vs what I've seen in other places, which seem to mostly depend
|
||||
// on lscpu, which isn't installed by default on Alpine Linux. While I could
|
||||
// just pull it in for the Docker image, it wasn't clear to me how common it
|
||||
// is for lscpu to be installed on other distros so decided to try a different
|
||||
// is for lscpu to be installed on other distros so decided to try a different
|
||||
// technique.
|
||||
//
|
||||
// The code below checks if at least one cpu core_id file exist in sysfs and,
|
||||
|
Reference in New Issue
Block a user