summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c3
1 files changed, 1 insertions, 2 deletions
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);