mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
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:
committed by
David Lechner
parent
e67ae1c52b
commit
bd0b276ea5
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user