stream-slice: fix percentage

This commit is contained in:
Starbeamrainbowlabs 2020-07-02 17:27:39 +01:00
parent 97ab77e95e
commit f5fe2873a6
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export default async function(settings) {
await next.serialise(stream_out, is_last);
// Update the user
l.log(`Written ${(i - offset) + 1} / ${count} objects (~${percentage(i - offset, count).toFixed(2)}%)`);
l.log(`Written ${(i - offset) + 1} / ${count} objects (~${percentage((i - offset) + 1, count).toFixed(2)}%)`);
// Don't go further than we need to
if(is_last) break;