This commit is contained in:
Jean-Marie Mineau 2024-11-19 22:37:45 +01:00
parent ba2759e831
commit 99606f32e6
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 7 additions and 2 deletions

View file

@ -51,7 +51,7 @@ sqlite3 ${DB} 'SELECT sha256 FROM data WHERE nb_def_platform_32_classes >= 1 OR
N_CHUNK=$(python3 -c "print($(cat ${LIST} | wc -l)//20 + 1)")
rm -r "${CHUNK_FOLDER}"
mkdir "${CHUNK_FOLDER}"
split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}"
split -a 2 -d -l "${N_CHUNK}" "${LIST}" "${CHUNK_FOLDER}/"
worker () {
for sha in $(cat "${1}"); do