From 0ea43089e1b95bd7b4e25ca170e155295f2b2b2d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 31 Oct 2007 15:12:33 -0500 Subject: Remove final use of the math library from pacman To round a value, we don't need floorf- we can just cast to an int. Signed-off-by: Dan McGee --- src/pacman/callback.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 #include #include -#include #include @@ -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); -- cgit v1.2.3-24-g4f1b