feat: update wget.ts
This commit is contained in:
@@ -126,4 +126,12 @@ if (contentLength !== null) {
|
||||
await response.body?.pipeTo(outputFileWritable);
|
||||
clearInterval(stateFileInterVal);
|
||||
await clearLastLine();
|
||||
console.log("Download finished.");
|
||||
|
||||
const costTime = new Date().getTime() - startTime;
|
||||
const fileInfo = await Deno.stat(outputFilename);
|
||||
const fileSize = fileInfo.size;
|
||||
console.log(
|
||||
`Download finished, size: ${formatSize2(fileSize)}, time: ${
|
||||
formatHumanTime(costTime)
|
||||
}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user