summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 20ea28a..3b19c63 100644
--- a/src/io.c
+++ b/src/io.c
@@ -156,8 +156,8 @@ size_t apk_istream_splice(void *stream, int fd, size_t size,
}
while (done < size) {
- if (done != 0 && cb != NULL)
- cb(cb_ctx, muldiv(APK_PROGRESS_SCALE, done, size));
+ if (cb != NULL)
+ cb(cb_ctx, done);
togo = size - done;
if (togo > bufsz)