From 14deed89ea2748d7e268a5b18ab2f9be6688975b Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 7 Jul 2024 18:28:14 +0200 Subject: Use simpler method to get the number of processors Chance met reading '(elisp) Process Information'. --- .emacs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.emacs b/.emacs index 007ed6d..a205771 100644 --- 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))) -- cgit v1.2.3