From: Joao Eduardo Luis Date: Fri, 30 Jan 2015 11:37:28 +0000 (+0000) Subject: mon: Monitor: fix timecheck rounds period X-Git-Tag: v0.94~61^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3836%2Fhead;p=ceph.git mon: Monitor: fix timecheck rounds period Fixes: #10546 Backports: dumpling?,firefly,giant Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index aafc56c29008..5408754d5499 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3667,7 +3667,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 {