summaryrefslogtreecommitdiffstats
path: root/src/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman.c')
-rw-r--r--src/pacman.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman.c b/src/pacman.c
index 0e7e83c8..ef0995e4 100644
--- a/src/pacman.c
+++ b/src/pacman.c
@@ -1085,6 +1085,10 @@ int pacman_sync(pacdb_t *db, PMList *targets)
}
}
mb = (double)(totalsize / 1048576.0);
+ /* round up to 0.1 */
+ if(mb < 0.1) {
+ mb = 0.1;
+ }
printf("\nTargets: ");
str = buildstring(list);
indentprint(str, 9);