From f5fe2873a67e2e0ea89b98c71cf3bd6f6c7545de Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 2 Jul 2020 17:27:39 +0100 Subject: [PATCH] stream-slice: fix percentage --- src/Subcommands/stream-slice/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Subcommands/stream-slice/index.mjs b/src/Subcommands/stream-slice/index.mjs index 7edd170..b20abe3 100644 --- a/src/Subcommands/stream-slice/index.mjs +++ b/src/Subcommands/stream-slice/index.mjs @@ -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;