summaryrefslogtreecommitdiff
path: root/lib/rpminstall.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpminstall.c')
-rw-r--r--lib/rpminstall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c
index c3b95cdd1..bc504229f 100644
--- a/lib/rpminstall.c
+++ b/lib/rpminstall.c
@@ -139,8 +139,8 @@ void * showProgress(/*@null@*/ const void * arg, const rpmCallbackType what,
case RPMCALLBACK_TRANS_PROGRESS:
case RPMCALLBACK_INST_PROGRESS:
if (flags & INSTALL_PERCENT)
- fprintf(stdout, "%%%% %f\n", (total
- ? ((float) ((((float) amount) / total) * 100))
+ fprintf(stdout, "%%%% %f\n", (double) (total
+ ? ((((float) amount) / total) * 100)
: 100.0));
else if (flags & INSTALL_HASH)
printHash(amount, total);