commit 14deed89ea2748d7e268a5b18ab2f9be6688975b
parent b84d735b85e37a0a33d2722000245b63c263b723
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sun, 7 Jul 2024 18:28:14 +0200
Use simpler method to get the number of processors
Chance met reading '(elisp) Process Information'.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.emacs b/.emacs
@@ -531,8 +531,7 @@ UPSTREAMS is a list of fetch URLs."
(file-relative-name
buffer-file-name (file-name-concat
emacs-root "test"))))
- (cores (string-to-number
- (shell-command-to-string "nproc --all")))
+ (cores (num-processors 'all))
(options
`(("SELECTOR" . ,(which-function))
("TEST_BACKTRACE_LINE_LENGTH" . nil)))