Mailinglist Archive: opensuse-buildservice (137 mails)

< Previous Next >
Re: [opensuse-buildservice] Set maximum number of processors in _constraints?

On Saturday 2015-11-21 09:19, Tomáš Chvátal wrote:
if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then
max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`

It's better to use /proc/meminfo. free(1) output is more prone
to changes, and in fact, did so between 13.2 and TW.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >