]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: should return ostream in operator<<()
authorKefu Chai <kchai@redhat.com>
Sun, 6 Oct 2019 09:11:56 +0000 (17:11 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Oct 2019 09:20:28 +0000 (17:20 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc

index ba5c8d940aa76771a7ebd727723d9ea84694fcf1..64e129cfd8e4dfb1a004f13efb6d0433b81143c3 100644 (file)
@@ -50,6 +50,7 @@ std::ostream& operator<<(std::ostream& out, const signedspan& d)
   auto s = std::chrono::duration_cast<std::chrono::seconds>(d).count();
   auto ns = std::abs((d % 1s).count());
   fmt::print(out, "{}{}s", s, ns ? fmt::format(".{:0>9}", ns) : "");
+  return out;
 }
 }