File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/mongodb-memory-server-core/src/util Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,8 @@ export class MongoBinaryDownload {
414414 return ;
415415 }
416416
417+ this . printDownloadProgress ( { length : 0 } , true ) ;
418+
417419 fileStream . close ( ) ;
418420 await fspromises . rename ( tempDownloadLocation , downloadLocation ) ;
419421 log ( `httpDownload: moved "${ tempDownloadLocation } " to "${ downloadLocation } "` ) ;
@@ -437,12 +439,12 @@ export class MongoBinaryDownload {
437439 * Print the Download Progress to STDOUT
438440 * @param chunk A chunk to get the length
439441 */
440- printDownloadProgress ( chunk : { length : number } ) : void {
442+ printDownloadProgress ( chunk : { length : number } , forcePrint : boolean = false ) : void {
441443 this . dlProgress . current += chunk . length ;
442444
443445 const now = Date . now ( ) ;
444446
445- if ( now - this . dlProgress . lastPrintedAt < 2000 ) {
447+ if ( now - this . dlProgress . lastPrintedAt < 2000 && ! forcePrint ) {
446448 return ;
447449 }
448450
You can’t perform that action at this time.
0 commit comments