From 8888c4400d1df15bb8381cab7af3d422fe1e902b Mon Sep 17 00:00:00 2001 From: wmarcusm Date: Sun, 16 Jun 2002 07:19:29 +0000 Subject: [PATCH] WMM - Restored difftime use of doubles. --- lustre/utils/obdctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/utils/obdctl.c b/lustre/utils/obdctl.c index f582087..d63b1cf 100644 --- a/lustre/utils/obdctl.c +++ b/lustre/utils/obdctl.c @@ -147,14 +147,15 @@ int getfd(char *func) return 0; } -/* +#if 1 #define difftime(a, b) \ ((double)(a)->tv_sec - (b)->tv_sec + \ ((double)((a)->tv_usec - (b)->tv_usec) / 1000000)) -*/ +#else #define difftime(a, b) (((a)->tv_sec - (b)->tv_sec) + \ (((a)->tv_usec - (b)->tv_usec) / 1000000)) +#endif static int be_verbose(int verbose, struct timeval *next_time, int num, int *next_num, int num_total) -- 1.8.3.1