summaryrefslogtreecommitdiffstats
path: root/src/pacman.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-09-25 02:15:56 +0200
committerJudd Vinet <judd@archlinux.org>2004-09-25 02:15:56 +0200
commitdeff79c76c96ea1fd1f3e9eb682a9f9572a9e58e (patch)
treebd909537dc8500217f448bb92d91dde9681e1b58 /src/pacman.c
parent4ffc53b3398ae845183f991a56207459256cc9e9 (diff)
downloadpacman-deff79c76c96ea1fd1f3e9eb682a9f9572a9e58e.tar.gz
pacman-deff79c76c96ea1fd1f3e9eb682a9f9572a9e58e.tar.xz
Imported from pacman-2.9.1.tar.gz
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);