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:
parent
ff356e9c37
commit
e76f5388be
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue