From 949649a2b6e00297cbdc49437e70a27e455e92d2 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sun, 24 Sep 2017 14:08:40 -0500 Subject: Correct mistake in H5_now_usec calculation for clock_gettime. --- src/H5timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5timer.c b/src/H5timer.c index 4a1f3f0..8603b1c 100644 --- a/src/H5timer.c +++ b/src/H5timer.c @@ -198,7 +198,7 @@ H5_now_usec(void) struct timespec ts; HDclock_gettime(CLOCK_MONOTONIC, &ts); - now = (uint64_t)(ts.tv_sec * (1000 * 1000)) + (uint64_t)(ts.tv_nsec * 1000); + now = (uint64_t)(ts.tv_sec * (1000 * 1000)) + (uint64_t)(ts.tv_nsec / 1000); } #elif defined(H5_HAVE_GETTIMEOFDAY) { -- cgit v0.12