aboutsummaryrefslogtreecommitdiffstats
path: root/src/curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl.c')
-rw-r--r--src/curl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/curl.c b/src/curl.c
index ae058a9..3702c08 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -252,15 +252,15 @@ int slapt_download_pkg(const slapt_rc_config *global_config,
if (global_config->progress_cb == NULL) {
if (global_config->dl_stats == SLAPT_TRUE) {
- printf(gettext("Get %s %s %s [%.1d%s]...\n"),
+ printf(gettext("Get %s %s %s [%.1f%s]...\n"),
pkg->mirror,pkg->name,pkg->version,
- ( dl_total_size > 1024 ) ? dl_total_size / 1024 : dl_total_size,
+ ( dl_total_size > 1024 ) ? dl_total_size / 1024.0 : dl_total_size,
( dl_total_size > 1024 ) ? "MB" : "kB"
);
} else {
- printf(gettext("Get %s %s %s [%.1d%s]..."),
+ printf(gettext("Get %s %s %s [%.1f%s]..."),
pkg->mirror,pkg->name,pkg->version,
- ( dl_total_size > 1024 ) ? dl_total_size / 1024 : dl_total_size,
+ ( dl_total_size > 1024 ) ? dl_total_size / 1024.0 : dl_total_size,
( dl_total_size > 1024 ) ? "MB" : "kB"
);
}