Skip to content

Commit

Permalink
Use zero as the default cache size on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrik committed Mar 6, 2021
1 parent 54c32da commit 0d00f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpuinfo/cpuinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ def _get_cpu_info_from_sysctl():
# Various fields
vendor_id = _get_field(False, output, None, None, 'machdep.cpu.vendor')
processor_brand = _get_field(True, output, None, None, 'machdep.cpu.brand_string')
cache_size = _get_field(False, output, None, None, 'machdep.cpu.cache.size')
cache_size = _get_field(False, output, int, 0, 'machdep.cpu.cache.size')
stepping = _get_field(False, output, int, 0, 'machdep.cpu.stepping')
model = _get_field(False, output, int, 0, 'machdep.cpu.model')
family = _get_field(False, output, int, 0, 'machdep.cpu.family')
Expand Down

0 comments on commit 0d00f4b

Please sign in to comment.