Skip to content

Commit

Permalink
cmn_detect_cpu.py: Deal with no S.rnf_ports
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jan 23, 2025
1 parent f6cfcb8 commit 9df498e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmn_detect_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def prepare_system(S):
if o_verbose:
print("%u CPUs, %u RN-F ports" % (S.n_cpu, len(S.rnf_ports)))
# We usually see a consistent number of CPUs per RN-F port, but not always
if (S.n_cpu % len(S.rnf_ports)) != 0:
if S.rnf_ports and (S.n_cpu % len(S.rnf_ports)) != 0:
"""
A homogeneous system would have perhaps 1 or 2 CPUs per RN-F.
If the number does not divide equally, it could indicate that:
Expand Down

0 comments on commit 9df498e

Please sign in to comment.