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).

Ref ce31880ccc
Fix #5347
This commit is contained in:
Henrik Lissner 2021-08-06 03:41:34 -04:00
parent ff356e9c37
commit e76f5388be

View file

@ -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)