diff options
author | gabrielgio <gabrielgio@workstation.lan> | 2024-02-17 21:55:15 +0100 |
---|---|---|
committer | gabrielgio <gabrielgio@workstation.lan> | 2024-02-17 21:55:15 +0100 |
commit | f2200e22b05c3801b722cd46617e7bcf64538d17 (patch) | |
tree | c3b6c53b39953cecbb316858c767dfde981051bb /importer | |
parent | 0a2e62f57734f820cd20e151d1150342408552ed (diff) | |
download | dict-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.c | 6 |
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; |