Skip to content

Commit d4ca2d3

Browse files
committed
Revise
1 parent eeca806 commit d4ca2d3

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

lib.ring

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,14 @@ class SysInfo {
582582

583583
// Set CPU info
584584
physicalCPUCount = len(physicalIDs)
585-
if physicalCPUCount = 0 { physicalCPUCount = 1 }
586-
if coresPerCPU = 0 { coresPerCPU = 1 }
585+
586+
if (physicalCPUCount = 0) {
587+
physicalCPUCount = 1
588+
}
589+
590+
if (coresPerCPU = 0) {
591+
coresPerCPU = 1
592+
}
587593

588594
cpuInfo[:model] = modelName
589595
cpuInfo[:count] = physicalCPUCount
@@ -877,7 +883,7 @@ class SysInfo {
877883
// Initialize the blockDevices list
878884
blockDevices = []
879885

880-
if isWindows() {
886+
if (isWindows()) {
881887
// Get block devices from winSysInfo
882888
blockDevices = winSysInfo[:disks]
883889
elseif (isLinux())

0 commit comments

Comments
 (0)