summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2024-07-07 18:28:14 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2024-07-07 18:29:54 +0200
commit14deed89ea2748d7e268a5b18ab2f9be6688975b (patch)
treec2dead868596a502ea76d0c01e3799f6f996e4f5
parentb84d735b85e37a0a33d2722000245b63c263b723 (diff)
downloaddotfiles-14deed89ea2748d7e268a5b18ab2f9be6688975b.tar.xz
Use simpler method to get the number of processors
Chance met reading '(elisp) Process Information'.
-rw-r--r--.emacs3
1 files changed, 1 insertions, 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)))