From 9ecafe18e05279069e27e2946084ecd069e8b65b Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Sun, 12 May 2024 00:15:58 -0700 Subject: [PATCH] progress script fix --- scripts/progress.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/progress.ts b/scripts/progress.ts index 8e0ee66..175ad04 100644 --- a/scripts/progress.ts +++ b/scripts/progress.ts @@ -25,7 +25,7 @@ const width = 60; console.log( "▓".repeat(progress * width) + "░".repeat((1 - progress) * width) + - ` (${numTotal - TOTAL}/${TOTAL})` + ` (${TOTAL - numTotal}/${TOTAL})` ); console.log(); -console.log(`${progress * 100.0}% complete to sqlite-vec v0`); +console.log(`${(progress * 100.0).toPrecision(2)}% complete to sqlite-vec v0`);