diff options
author | Dan McGee <dan@archlinux.org> | 2012-01-01 02:18:46 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-02 19:55:59 +0100 |
commit | 2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d (patch) | |
tree | 49bc8662f8415b1de4c058a8e590a4c503fdf4cf /src/pacman/util.h | |
parent | 819c28bf8c666a61ef3b0a016dcbd6962ecaf4e4 (diff) | |
download | pacman-2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d.tar.gz pacman-2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r-- | src/pacman/util.h | 3 |
1 files changed, 0 insertions, 3 deletions
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; |