@@ -119,7 +119,7 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
119
119
120
120
if err == utils .ErrRangeRequestsNotSupported {
121
121
outputMgr .SetStatus (entryFunctionId , "warning" )
122
- outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("Downloading %s with 1 connection (range requests unsupported )" , entry .OutputPath ))
122
+ outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("[range unsupported] Downloading %s with 1-thread (%s )" , entry .OutputPath , utils . FormatBytes ( uint64 ( fileSize )) ))
123
123
} else if err != nil {
124
124
outputMgr .ReportError (entryFunctionId , fmt .Errorf ("error getting file size for %s: %v" , entry .OutputPath , err ))
125
125
outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("Error getting file size for %s" , entry .OutputPath ))
@@ -136,8 +136,8 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
136
136
var totalDownloaded int64
137
137
for bytesDownloaded := range progCh {
138
138
totalDownloaded += bytesDownloaded
139
- progressString := fmt . Sprintf ( "%s / %s" , utils . FormatBytes ( uint64 ( totalDownloaded )) , utils .FormatBytes (uint64 (totalFileSize )))
140
- outputMgr .AddProgressBarToStream (funcId , totalDownloaded , totalFileSize , progressString )
139
+ // progressString := , utils.FormatBytes(uint64(totalFileSize)))
140
+ outputMgr .AddProgressBarToStream (funcId , totalDownloaded , totalFileSize , utils . FormatBytes ( uint64 ( totalDownloaded )) )
141
141
}
142
142
}(entryFunctionId , fileSize , progressCh )
143
143
@@ -268,8 +268,8 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
268
268
var totalDownloaded int64
269
269
for bytesDownloaded := range progCh {
270
270
totalDownloaded += bytesDownloaded
271
- progressString := fmt .Sprintf ("%s / %s" , utils . FormatBytes ( uint64 ( totalDownloaded )) , utils .FormatBytes (uint64 (totalFileSize )))
272
- outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , totalFileSize , progressString )
271
+ // progressString := fmt.Sprintf("%s / %s", , utils.FormatBytes(uint64(totalFileSize)))
272
+ outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , totalFileSize , utils . FormatBytes ( uint64 ( totalDownloaded )) )
273
273
}
274
274
}(entry .OutputPath , size , progressCh )
275
275
@@ -393,6 +393,7 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
393
393
totoalJobSize += s3Job .Size
394
394
}
395
395
close (s3JobsCh )
396
+ outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("Downloading S3 key %s (%s)" , entry .URL , utils .FormatBytes (uint64 (totoalJobSize ))))
396
397
397
398
// Internal goroutine to forward progress updates to the manager
398
399
progressWg .Add (1 )
@@ -401,8 +402,8 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
401
402
var totalDownloaded int64
402
403
for bytesDownloaded := range progCh {
403
404
totalDownloaded += bytesDownloaded
404
- progressString := fmt .Sprintf ("%s / %s" , utils .FormatBytes (uint64 (totalDownloaded )), utils .FormatBytes (uint64 (totalFileSize )))
405
- outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , totalFileSize , progressString )
405
+ // progressString := fmt.Sprintf("%s / %s", utils.FormatBytes(uint64(totalDownloaded)), utils.FormatBytes(uint64(totalFileSize)))
406
+ outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , totalFileSize , utils . FormatBytes ( uint64 ( totalDownloaded )) )
406
407
}
407
408
}(entry .OutputPath , totoalJobSize , progressCh )
408
409
@@ -488,9 +489,9 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
488
489
}
489
490
entry .OutputPath = config .OutputPath
490
491
}
491
- outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("Downloading GDrive file %s" , entry .OutputPath ))
492
492
fileSize := metadata ["size" ].(string )
493
493
fileSizeInt , _ := strconv .ParseInt (fileSize , 10 , 64 )
494
+ outputMgr .SetMessage (entryFunctionId , fmt .Sprintf ("Downloading GDrive file %s (%s)" , entry .OutputPath , utils .FormatBytes (uint64 (fileSizeInt ))))
494
495
495
496
var progressWg sync.WaitGroup
496
497
progressWg .Add (1 )
@@ -499,8 +500,8 @@ func BatchDownload(entries []utils.DownloadEntry, numLinks, connectionsPerLink i
499
500
var totalDownloaded int64
500
501
for bytesDownloaded := range progCh {
501
502
totalDownloaded += bytesDownloaded
502
- progressString := fmt .Sprintf ("%s / %s" , utils .FormatBytes (uint64 (totalDownloaded )), utils .FormatBytes (uint64 (filesize )))
503
- outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , filesize , progressString )
503
+ // progressString := fmt.Sprintf("%s / %s", utils.FormatBytes(uint64(totalDownloaded)), utils.FormatBytes(uint64(filesize)))
504
+ outputMgr .AddProgressBarToStream (entryFunctionId , totalDownloaded , filesize , utils . FormatBytes ( uint64 ( totalDownloaded )) )
504
505
}
505
506
}(entry .OutputPath , fileSizeInt , progressCh )
506
507
0 commit comments