]> 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)
committerroot <varao@redhat.com>
Tue, 17 Sep 2019 15:30:46 +0000 (21:00 +0530)
Fixes: https://tracker.ceph.com/issues/40821
Signed-off-by: Varsha Rao <varao@redhat.com>
src/common/ceph_time.cc

index f831e78b9d3cf9f07f2118a2f63b11a880f67590..c44b2eac14da727a564611afd67252f868b55379 100644 (file)
@@ -95,7 +95,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";
   }