Skip to content

Commit 9df498e

Browse files
authored
cmn_detect_cpu.py: Deal with no S.rnf_ports
1 parent f6cfcb8 commit 9df498e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmn_detect_cpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def prepare_system(S):
285285
if o_verbose:
286286
print("%u CPUs, %u RN-F ports" % (S.n_cpu, len(S.rnf_ports)))
287287
# We usually see a consistent number of CPUs per RN-F port, but not always
288-
if (S.n_cpu % len(S.rnf_ports)) != 0:
288+
if S.rnf_ports and (S.n_cpu % len(S.rnf_ports)) != 0:
289289
"""
290290
A homogeneous system would have perhaps 1 or 2 CPUs per RN-F.
291291
If the number does not divide equally, it could indicate that:

0 commit comments

Comments
 (0)