We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeca806 commit d4ca2d3Copy full SHA for d4ca2d3
1 file changed
lib.ring
@@ -582,8 +582,14 @@ class SysInfo {
582
583
// Set CPU info
584
physicalCPUCount = len(physicalIDs)
585
- if physicalCPUCount = 0 { physicalCPUCount = 1 }
586
- if coresPerCPU = 0 { coresPerCPU = 1 }
+
+ if (physicalCPUCount = 0) {
587
+ physicalCPUCount = 1
588
+ }
589
590
+ if (coresPerCPU = 0) {
591
+ coresPerCPU = 1
592
593
594
cpuInfo[:model] = modelName
595
cpuInfo[:count] = physicalCPUCount
@@ -877,7 +883,7 @@ class SysInfo {
877
883
// Initialize the blockDevices list
878
884
blockDevices = []
879
885
880
- if isWindows() {
886
+ if (isWindows()) {
881
887
// Get block devices from winSysInfo
882
888
blockDevices = winSysInfo[:disks]
889
elseif (isLinux())
0 commit comments