summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2017-09-24 19:08:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2017-09-24 19:08:40 (GMT)
commit949649a2b6e00297cbdc49437e70a27e455e92d2 (patch)
treedc3b8a7d3115f1e37d94352a13ab75d61eb4a6ab
parent395473b2f4b5f03733aab9a785ac23c59ea84d0b (diff)
downloadhdf5-949649a2b6e00297cbdc49437e70a27e455e92d2.zip
hdf5-949649a2b6e00297cbdc49437e70a27e455e92d2.tar.gz
hdf5-949649a2b6e00297cbdc49437e70a27e455e92d2.tar.bz2
Correct mistake in H5_now_usec calculation for clock_gettime.
-rw-r--r--src/H5timer.c2
1 files changed, 1 insertions, 1 deletions
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)
{