Make a use of LOADAVERAGE option in order to avoid excess load

Этот коммит содержится в:
belliash 2012-01-16 13:18:06 +01:00
родитель e875894b83
Коммит 2202509d87
1 изменённых файлов: 1 добавлений и 1 удалений

2
ezsync
Просмотреть файл

@ -184,7 +184,7 @@ done
# Regenerate Portage cache
printInfo "Updating constructed Portage cache..."
run "FEATURES="metadata-transfer" PORTDIR="${PORTAGESDIR}/${PORTAGE_BUILD[0]}" egencache --update --portdir=${PORTAGESDIR}/${PORTAGE_BUILD[0]} --jobs=${MAXJOBS} --tolerant"
run "FEATURES="metadata-transfer" PORTDIR="${PORTAGESDIR}/${PORTAGE_BUILD[0]}" egencache --update --portdir=${PORTAGESDIR}/${PORTAGE_BUILD[0]} --jobs=${MAXJOBS} --load-average=${LOADAVERAGE} --tolerant"
[ ${?} -ne 0 ] && die "EzBuild was unable to regenerate cache!"
# Finally quit the application