From 368a5a8a8739e98ffdb8ac1210d111092e31be9e Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Fri, 30 Jan 2015 11:37:28 +0000 Subject: [PATCH] mon: Monitor: fix timecheck rounds period Fixes: #10546 Backports: dumpling?,firefly,giant Signed-off-by: Joao Eduardo Luis (cherry picked from commit 2e749599ac6e1060cf553b521761a93fafbf65bb) --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index ad35e5ed39c08..0fb320590320d 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3177,7 +3177,7 @@ void Monitor::timecheck_start_round() dout(10) << __func__ << " there's a timecheck going on" << dendl; utime_t curr_time = ceph_clock_now(g_ceph_context); double max = g_conf->mon_timecheck_interval*3; - if (curr_time - timecheck_round_start > max) { + if (curr_time - timecheck_round_start < max) { dout(10) << __func__ << " keep current round going" << dendl; goto out; } else { -- 2.39.5