ui: shows percentages in progress bar

This commit is contained in:
2026-06-02 14:51:52 +03:00
parent 10442f3101
commit 4aca8fb5a4
4 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ void file_download(file_args_t *f_args, query_args_t *q_args) {
if (qlen) {
it_count++;
if (!(it_count % it_interval)) {
pb->procent = progress;
pb->percentage = progress;
d->needs_update = true;
} else {
q_args->buf_used = 0;
@@ -205,7 +205,7 @@ int32_t file_upload_start(query_args_t *q_args) {
} else { \
it_count++; \
if (!(it_count % it_interval)) { \
pb->procent = progress; \
pb->percentage = progress; \
d->needs_update = true; \
} \
q_args->file->rest -= wlen; \