This commit is contained in:
maliakal_d 2021-09-10 17:32:43 +02:00
parent 5b47b1e353
commit 190f64689f

View File

@ -272,7 +272,7 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname,
int oldProgress = 0; int oldProgress = 0;
while (bytes > 0) { while (bytes > 0) {
if (totalBytesRead == 2 * bytes) { if (totalBytesRead <= 2 * bytes) {
LOG(logINFO, ("bytes:%d\n", bytes)); LOG(logINFO, ("bytes:%d\n", bytes));
} }
int progress = (int)(((double)(totalBytesRead) / fsize) * 100); int progress = (int)(((double)(totalBytesRead) / fsize) * 100);