From 2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 31 Dec 2011 19:18:46 -0600 Subject: Convert get_update_timediff to integer return value We don't need absolute floating point precision at all here; we can stick to integer land and use milliseconds which are precise enough for our purposes. This also removes most floating point math out of the non-update code path. Signed-off-by: Dan McGee --- src/pacman/util.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/pacman/util.h') diff --git a/src/pacman/util.h b/src/pacman/util.h index 62919395..5d3ea2f1 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -36,9 +36,6 @@ #define _n(str1, str2, ct) (ct == 1 ? str1 : str2) #endif -/* update speed for the fill_progress based functions */ -#define UPDATE_SPEED_SEC 0.2f - typedef struct _pm_target_t { alpm_pkg_t *remove; alpm_pkg_t *install; -- cgit v1.2.3-24-g4f1b