summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorJos Collin <jcollin@redhat.com>2024-09-19 08:36:02 +0200
committerJos Collin <jcollin@redhat.com>2024-09-19 08:40:23 +0200
commita0e88abf4ec812e32bcee28b6dc1afa1189f4c61 (patch)
tree98a3b83edf38447b7377f72d7dd3e36416e2a27f /src/tools
parentMerge pull request #59859 from afreen23/wip-nvme-service-fixes (diff)
downloadceph-a0e88abf4ec812e32bcee28b6dc1afa1189f4c61.tar.xz
ceph-a0e88abf4ec812e32bcee28b6dc1afa1189f4c61.zip
cephfs_mirror: revert sync_duration to seconds
Fixes: https://tracker.ceph.com/issues/68131 Signed-off-by: Jos Collin <jcollin@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/cephfs_mirror/PeerReplayer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cephfs_mirror/PeerReplayer.cc b/src/tools/cephfs_mirror/PeerReplayer.cc
index b56ca9a2f1c..fccc1222204 100644
--- a/src/tools/cephfs_mirror/PeerReplayer.cc
+++ b/src/tools/cephfs_mirror/PeerReplayer.cc
@@ -1687,7 +1687,7 @@ int PeerReplayer::do_sync_snaps(const std::string &dir_root) {
double duration = 0;
for (; it != local_snap_map.end(); ++it) {
if (m_perf_counters) {
- start = std::chrono::duration_cast<std::chrono::milliseconds>(clock::now().time_since_epoch()).count();
+ start = std::chrono::duration_cast<std::chrono::seconds>(clock::now().time_since_epoch()).count();
utime_t t;
t.set_from_double(start);
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) {
}
if (m_perf_counters) {
m_perf_counters->inc(l_cephfs_mirror_peer_replayer_snaps_synced);
- end = std::chrono::duration_cast<std::chrono::milliseconds>(clock::now().time_since_epoch()).count();
+ end = std::chrono::duration_cast<std::chrono::seconds>(clock::now().time_since_epoch()).count();
utime_t t;
t.set_from_double(end);
m_perf_counters->tset(l_cephfs_mirror_peer_replayer_last_synced_end, t);