aboutsummaryrefslogtreecommitdiff
path: root/importer
diff options
context:
space:
mode:
authorgabrielgio <gabrielgio@workstation.lan>2024-02-17 21:55:15 +0100
committergabrielgio <gabrielgio@workstation.lan>2024-02-17 21:55:15 +0100
commitf2200e22b05c3801b722cd46617e7bcf64538d17 (patch)
treec3b6c53b39953cecbb316858c767dfde981051bb /importer
parent0a2e62f57734f820cd20e151d1150342408552ed (diff)
downloaddict-f2200e22b05c3801b722cd46617e7bcf64538d17.tar.gz
dict-f2200e22b05c3801b722cd46617e7bcf64538d17.tar.bz2
dict-f2200e22b05c3801b722cd46617e7bcf64538d17.zip
feat: Add a more "refined" UI
Diffstat (limited to 'importer')
-rw-r--r--importer/main.c6
1 files changed, 2 insertions, 4 deletions
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;