1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-06-10 08:34:55 +00:00

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

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;