From: Varsha Rao Date: Thu, 22 Aug 2019 13:41:59 +0000 (+0530) Subject: common/ceph_time: Use fixed floating-point notation for mono_clock X-Git-Tag: v12.2.14~10^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37b9d132192e0ba3525c9e9d9227996c1d8260d4;p=ceph.git 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) --- diff --git a/src/common/ceph_time.cc b/src/common/ceph_time.cc index be7c5f889c6a..580e56861b48 100644 --- a/src/common/ceph_time.cc +++ b/src/common/ceph_time.cc @@ -84,7 +84,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"; }