]> git.apps.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)
committerNathan Cutler <ncutler@suse.com>
Mon, 4 Nov 2019 18:25:41 +0000 (19:25 +0100)
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 a5c630a17865fdfe545a8c843a1bbc5778887032..cf623a2d90ae9409c82ca8e744fa4d6c894ad237 100644 (file)
@@ -92,7 +92,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";
   }