]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_time: Use fixed floating-point notation for mono_clock
authorVarsha Rao <varao@redhat.com>
Thu, 22 Aug 2019 13:41:59 +0000 (19:11 +0530)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 14 Feb 2020 04:53:23 +0000 (20:53 -0800)
Fixes: https://tracker.ceph.com/issues/40821
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 9c57c9ffa482be08acad38d863244a873ffbf668)

src/common/ceph_time.cc

index be7c5f889c6a3cf3412e62d5408c728f3306b5fc..580e56861b487c2205e6692c0b78aec4c65495f3 100644 (file)
@@ -84,7 +84,8 @@ namespace ceph {
           typename std::enable_if<Clock::is_steady>::type*>
   std::ostream& operator<<(std::ostream& m,
                           const std::chrono::time_point<Clock>& t) {
-    return m << std::chrono::duration<double>(t.time_since_epoch()).count()
+    return m << std::fixed << std::chrono::duration<double>(
+               t.time_since_epoch()).count()
             << "s";
   }