From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DED43159C9B for ; Fri, 2 Aug 2024 23:14:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 977E1E2A5F; Fri, 2 Aug 2024 23:14:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 75856E2A5D for ; Fri, 2 Aug 2024 23:14:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2EBC4343014 for ; Fri, 2 Aug 2024 23:14:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA1381EA7 for ; Fri, 2 Aug 2024 23:14:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1722615674.1d2c629638374fd9d784e142065b63d3551dad34.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: functions.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1d2c629638374fd9d784e142065b63d3551dad34 X-VCS-Branch: master Date: Fri, 2 Aug 2024 23:14:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8dbca6ae-bb6b-435c-beb9-faca06ebf79a X-Archives-Hash: 082657c2096ff7a510c5cd1722e52953 commit: 1d2c629638374fd9d784e142065b63d3551dad34 Author: Kerin Millar plushkava net> AuthorDate: Fri Aug 2 14:54:01 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri Aug 2 16:21:14 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=1d2c6296 Explain that get_nprocs() is called by parallel_run() Signed-off-by: Kerin Millar plushkava.net> functions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.sh b/functions.sh index 69b9bf5..4fe0e86 100644 --- a/functions.sh +++ b/functions.sh @@ -300,10 +300,10 @@ oldest() # Executes a simple command in parallel. At least two parameters are expected. # The first parameter shall be taken as the maximum number of jobs to run # concurrently. If specified as less than or equal to 0, the number shall be -# determined by running the nproc function. The second parameter shall be taken -# as a command name. The remaining parameters shall be conveyed to the specified -# command, one at a time. Should at least one command fail, the return value -# shall be greater than 0. +# determined by calling the get_nprocs function. The second parameter shall be +# taken as a command name. The remaining parameters shall be conveyed to the +# specified command, one at a time. Should at least one command fail, the +# return value shall be greater than 0. # parallel_run() {