File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1687,7 +1687,7 @@ int PeerReplayer::do_sync_snaps(const std::string &dir_root) {
16871687 double duration = 0 ;
16881688 for (; it != local_snap_map.end (); ++it) {
16891689 if (m_perf_counters) {
1690- start = std::chrono::duration_cast<std::chrono::milliseconds >(clock::now ().time_since_epoch ()).count ();
1690+ start = std::chrono::duration_cast<std::chrono::seconds >(clock::now ().time_since_epoch ()).count ();
16911691 utime_t t;
16921692 t.set_from_double (start);
16931693 m_perf_counters->tset (l_cephfs_mirror_peer_replayer_last_synced_start, t);
@@ -1706,7 +1706,7 @@ int PeerReplayer::do_sync_snaps(const std::string &dir_root) {
17061706 }
17071707 if (m_perf_counters) {
17081708 m_perf_counters->inc (l_cephfs_mirror_peer_replayer_snaps_synced);
1709- end = std::chrono::duration_cast<std::chrono::milliseconds >(clock::now ().time_since_epoch ()).count ();
1709+ end = std::chrono::duration_cast<std::chrono::seconds >(clock::now ().time_since_epoch ()).count ();
17101710 utime_t t;
17111711 t.set_from_double (end);
17121712 m_perf_counters->tset (l_cephfs_mirror_peer_replayer_last_synced_end, t);
You can’t perform that action at this time.
0 commit comments