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: v13.2.9~19^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=50f7999cb9726f0ec88ffaaf46c16d197ce7b22e;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 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"; }