DivestOS/Scripts/LineageOS-14.1
steadfasterX b3bef085f8
allow to specify thread counts (sync,build)
when DOS_MAX_THREADS_REPO and/or DOS_MAX_THREADS_BUILD are defined
in init.sh they will be used. otherwise the max threads are calculated
based on the cpu cores count.

if that calculation fails (depends on nproc) a default fallback of:

- 4 is used for repo sync (which reflects the current state for repo sync)
- `<empty>` is used for make - which yields to no limitation (which reflects the current state for mka / make)

to avoid issues regarding being rate limited a max value for repo sync processes
will overwrite DOS_MAX_THREADS_REPO when set greater than MAX_THREADS_REPO_RATE (8).

Signed-off-by: steadfasterX <steadfasterX@gmail.com>
2023-03-31 21:00:01 +02:00
..
CVE_Patchers Update CVE patchers 2023-03-17 19:27:22 -04:00
Functions.sh allow to specify thread counts (sync,build) 2023-03-31 21:00:01 +02:00
Patch.sh Updates, logging, and churn 2023-03-31 12:38:46 -04:00
Rebrand.sh 2022 2022-05-01 01:13:49 -04:00
Theme.sh 2022 2022-05-01 01:13:49 -04:00