Skip to content

fix: capture both logical and physical CPU core counts#49

Merged
alubbock merged 1 commit intomainfrom
fix/psutil-cpu-count
Mar 13, 2026
Merged

fix: capture both logical and physical CPU core counts#49
alubbock merged 1 commit intomainfrom
fix/psutil-cpu-count

Conversation

@alubbock
Copy link
Copy Markdown
Owner

Summary

  • psutil.cpu_count(logical=True) returns None on some platforms (e.g. macOS with psutil 7.x)
  • Now captures both cpu_cores_logical and cpu_cores_physical so at least one is always available
  • Updated README mixin table to reflect new field

Test plan

  • test_psutil now passes on macOS with psutil 7.x (was failing before)
  • test_psutil_missing_raises unchanged and passing

psutil.cpu_count(logical=True) can return None on some platforms
(e.g. macOS with psutil 7.x). Now captures both logical and physical
counts so at least one is always available.
@alubbock alubbock merged commit 1fa27b1 into main Mar 13, 2026
20 checks passed
@alubbock alubbock deleted the fix/psutil-cpu-count branch March 13, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant