From 3f3a8f898d1d82381c27d0ffe3ee339824059a3a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 29 Jan 2020 14:01:14 +1100 Subject: [PATCH] [common] `1e9` is a floating point notation --- VERSION | 2 +- common/include/common/time.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index d7fef7af..8fabc1b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-134-g5d39b6160a+1 \ No newline at end of file +B1-135-g6e62ea5364+1 \ No newline at end of file diff --git a/common/include/common/time.h b/common/include/common/time.h index d59862a0..ece0baae 100644 --- a/common/include/common/time.h +++ b/common/include/common/time.h @@ -51,7 +51,7 @@ static inline uint64_t nanotime() { struct timespec time; clock_gettime(CLOCK_MONOTONIC_RAW, &time); - return ((uint64_t)time.tv_sec * 1e9) + time.tv_nsec; + return ((uint64_t)time.tv_sec * 1000000000LL) + time.tv_nsec; } static inline void nsleep(uint64_t ns)