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: v15.1.0~1422^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c57c9ffa482be08acad38d863244a873ffbf668;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 --- diff --git a/src/common/ceph_time.cc b/src/common/ceph_time.cc index f831e78b9d3..c44b2eac14d 100644 --- a/src/common/ceph_time.cc +++ b/src/common/ceph_time.cc @@ -95,7 +95,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"; }