index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-10-31 15:12:33 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-04 09:49:30 -0600 |
commit | 0ea43089e1b95bd7b4e25ca170e155295f2b2b2d (patch) | |
tree | 4263c665b078d92d4bccd5afd69345f28c5d12d5 /src | |
parent | bcb5465b21f6cafbd044d9aa3b6418dbac909638 (diff) |
-rw-r--r-- | src/pacman/callback.c | 3 |
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 3061d2a0..9b855e5e 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -28,7 +28,6 @@ #include <unistd.h> #include <dirent.h> #include <wchar.h> -#include <math.h> #include <alpm.h> @@ -475,7 +474,7 @@ void cb_dl_progress(const char *filename, int xfered, int total) rate = total / (timediff * 1024.0); /* round elapsed time to the nearest second */ - eta_s = floorf(timediff + 0.5); + eta_s = (int)(timediff + 0.5); } else { /* compute current average values */ timediff = get_update_timediff(0); |