Further conversions from 32 to 64 bits

This commit is contained in:
Andrea Mazzoleni 2026-06-04 00:34:51 +02:00
parent bbd3c23cd2
commit f40b2decdb
30 changed files with 251 additions and 156 deletions

View file

@ -27,7 +27,9 @@ void bw_limit(struct snapraid_bw* bw, uint64_t bytes)
if (eta > elapsed) {
eta -= elapsed;
usleep(eta * 1000);
if (eta > 1000)
eta = 1000;
usleep((unsigned)eta * 1000);
}
}