From f2200e22b05c3801b722cd46617e7bcf64538d17 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Sat, 17 Feb 2024 21:55:15 +0100 Subject: feat: Add a more "refined" UI --- importer/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'importer/main.c') diff --git a/importer/main.c b/importer/main.c index b83e850..087fc48 100644 --- a/importer/main.c +++ b/importer/main.c @@ -67,10 +67,8 @@ int run(const char *db, const char *txt) insert(data, line, read-1); count++; - if ((count % 321) == 0) { - float t = ((float)count/(float)total)*100; - printf("\rLoading data [%03.0f%%] %d/%d", t, count, total); - } + float t = ((float)count/(float)total)*100; + printf("\rLoading data [%03.0f%%] %d/%d", t, count, total); } float t = ((float)count/(float)total)*100; -- cgit v1.2.3