mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix: doom-system-cpus not handling int values
ce31880
did not fix doom-system-cpus on msys2 builds because the function didn't handle integer return values from any of its code paths (which formerly returned strings or lists). Refce31880ccc
Fix #5347
This commit is contained in:
@ -93,6 +93,7 @@ Tries to be portable. Returns 1 if cannot be determined."
|
|||||||
(doom-call-process "sysctl" "-n" "hw.ncpu")))))
|
(doom-call-process "sysctl" "-n" "hw.ncpu")))))
|
||||||
(max
|
(max
|
||||||
1 (or (cl-typecase cpus
|
1 (or (cl-typecase cpus
|
||||||
|
(integer cpus)
|
||||||
(string
|
(string
|
||||||
(condition-case _
|
(condition-case _
|
||||||
(string-to-number cpus)
|
(string-to-number cpus)
|
||||||
|
Reference in New Issue
Block a user