as expected by some tests, and clearer for the user.
Fixes: https://tracker.ceph.com/issues/68833
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit
b7fca3676eec20371e0735650a91add065f8faa0)
s.m_osd_to_respond = req ? req->osd : 0;
s.m_ordinal_of_requested_replica = m_reservations->active_requests_cnt();
s.m_num_to_reserve = scrbr->get_pg()->get_actingset().size() - 1;
- s.m_duration_seconds =
- duration_cast<seconds>(context<ScrubMachine>().get_time_scrubbing())
- .count();
+ s.m_duration_seconds = ceil<seconds>(machine.get_time_scrubbing()).count();
return s;
}