hub/sagas: fix scaling of download progress

This was missed in 06b204dd53.

Fixes: https://github.com/pybricks/pybricks-code/issues/1219
This commit is contained in:
David Lechner
2022-10-17 13:44:21 -05:00
committed by David Lechner
parent e67ae1c52b
commit bd0b276ea5
+1 -1
View File
@@ -242,7 +242,7 @@ function* handleDownloadAndRun(action: ReturnType<typeof downloadAndRun>): Gener
}
for (let i = 0; i < didCompile.file.size; i += chunkSize) {
yield* put(didProgressDownload((i * chunkSize) / didCompile.file.size));
yield* put(didProgressDownload(i / didCompile.file.size));
const writeUserRamMessageId = nextMessageId();