Skip to content

Commit 877b076

Browse files
committed
-> Reporting adjustments
1 parent 828169f commit 877b076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/downloader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ require([
412412
outputStream.write(chunk);
413413
thisChunkTime = Date.now();
414414
read += chunk.length;
415-
if(lastReportTime < 0 || ((thisChunkTime-lastReportTime) > 2000)) {
415+
if(lastReportTime < 0 || ((thisChunkTime-lastReportTime) > 300)) {
416416
lastReportTime = Date.now();
417417
self.postMessage({message: "update", size: read});
418418
read = 0;
@@ -495,7 +495,7 @@ require([
495495
// Will abort out of an update if there isn't a pending cancellation and the last update time was < 2 seconds
496496
// ago
497497
progressUpdate(message, progType) {
498-
if(this.lastProgressUpdate > 0 && Date.now()-this.lastProgressUpdate < 1000 && !this.pending_cancellation)
498+
if(this.lastProgressUpdate > 0 && Date.now()-this.lastProgressUpdate < 300 && !this.pending_cancellation)
499499
return;
500500
progType = progType || "download";
501501
let type = "info";

0 commit comments

Comments
 (0)