Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c91a7a
)
WMM - Restored difftime use of doubles.
author
wmarcusm
<wmarcusm>
Sun, 16 Jun 2002 07:19:29 +0000
(07:19 +0000)
committer
wmarcusm
<wmarcusm>
Sun, 16 Jun 2002 07:19:29 +0000
(07:19 +0000)
lustre/utils/obdctl.c
patch
|
blob
|
history
diff --git
a/lustre/utils/obdctl.c
b/lustre/utils/obdctl.c
index
f582087
..
d63b1cf
100644
(file)
--- 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)