From da7c795037685167a66d881c49fb2a2269ee912e Mon Sep 17 00:00:00 2001 From: Tom Barbette <tom.barbette@uclouvain.be> Date: Thu, 27 Jul 2023 22:54:30 +0200 Subject: [PATCH] TSCTimestamp: fix nanosecond val --- include/click/tsctimestamp.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/click/tsctimestamp.hh b/include/click/tsctimestamp.hh index f1c056005..fe5b6cfcc 100644 --- a/include/click/tsctimestamp.hh +++ b/include/click/tsctimestamp.hh @@ -80,7 +80,7 @@ class TSCTimestamp { * @brief returns the total number of nsecs represented by this timestamp */ inline double nsecval() { - return (double)val / ((double)cycles_hz_warp() / 1000000000.0d); + return (double)val / ((double)cycles_hz_warp() / 1000000000.0f); } inline int64_t tsc_val() { -- GitLab