index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-01-09 20:36:42 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-10 10:49:55 -0600 |
commit | d03b57f459fb9ab9288991a70c4e7297a7c1d150 (patch) | |
tree | 6bebc7f9ca3c5414a48dc1b5cfa323fd5c00e372 /lib/libalpm/conflict.c | |
parent | 281a4c0a4f2de217b5d23939fb78b3bbfccc34ca (diff) |
-rw-r--r-- | lib/libalpm/conflict.c | 4 |
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index 0eaf4373..fc25e7d3 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -425,8 +425,8 @@ alpm_list_t *_alpm_db_find_fileconflicts(pmdb_t *db, pmtrans_t *trans, continue; } - double percent = (double)current / (double)numtargs; - PROGRESS(trans, PM_TRANS_PROGRESS_CONFLICTS_START, "", (int)(percent * 100), + int percent = (current * 100) / numtargs; + PROGRESS(trans, PM_TRANS_PROGRESS_CONFLICTS_START, "", percent, numtargs, current); /* CHECK 1: check every target against every target */ _alpm_log(PM_LOG_DEBUG, "searching for file conflicts: %s\n", |