From 50f7999cb9726f0ec88ffaaf46c16d197ce7b22e Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 22 Aug 2019 19:11:59 +0530 Subject: [PATCH] common/ceph_time: Use fixed floating-point notation for mono_clock Fixes: https://tracker.ceph.com/issues/40821 Signed-off-by: Varsha Rao (cherry picked from commit 9c57c9ffa482be08acad38d863244a873ffbf668) --- src/common/ceph_time.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/ceph_time.cc b/src/common/ceph_time.cc index a5c630a17865f..cf623a2d90ae9 100644 --- a/src/common/ceph_time.cc +++ b/src/common/ceph_time.cc @@ -92,7 +92,8 @@ namespace ceph { typename std::enable_if::type*> std::ostream& operator<<(std::ostream& m, const std::chrono::time_point& t) { - return m << std::chrono::duration(t.time_since_epoch()).count() + return m << std::fixed << std::chrono::duration( + t.time_since_epoch()).count() << "s"; } -- 2.39.5