Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
speed up a bit by updating the processbar less often
Baptiste Daroussin committed 11 years ago
commit ca4c763a4716a8a3121b5805cb4b1515c77cfc0b
parent dabdd2c
1 file changed +2 -1
modified libpkg/repo/binary/update.c
@@ -533,7 +533,8 @@ pkg_repo_binary_update_proceed(const char *name, struct pkg_repo *repo,
	walk = map;
	for (int i = 0; i < cnt; i++) {
		len = strlen(walk);
-
		pkg_emit_progress_tick(i, cnt);
+
		if ((i % 10) == 0)
+
			pkg_emit_progress_tick(i, cnt);
		rc = pkg_repo_binary_add_from_manifest(walk, sqlite, len,
		    &keys, &pkg, legacy_repo, repo);
		if (rc != EPKG_OK) {