[Rpm-maint] [rpm-software-management/rpm] Add documentation for %getncpus macro (#707)

Panu Matilainen notifications at github.com
Thu May 16 08:38:46 UTC 2019


pmatilai commented on this pull request.



> @@ -66,6 +66,7 @@ to perform useful operations. The current list is
 	%trace		toggle print of debugging information before/after
 			expansion
 	%dump		print the active (i.e. non-covered) macro table
+	%getncpus	return the number of CPUs

It's not a function, it doesn't really "return" anything, it expands to the number of CPUs, and more precisely CPUs *available to the current process*, which is not necessarily the same thing as total number of processors on the system. Fix those and its an obvious keeper.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/707#pullrequestreview-238251416
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190516/23b79795/attachment.html>


More information about the Rpm-maint mailing list