From: Danny Al-Gaaf Date: Mon, 11 Mar 2013 12:25:41 +0000 (+0100) Subject: mon/Monitor.cc: Clarify calculation precedence for '%' and '?' X-Git-Tag: v0.60~106^2~27 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ed2f377d774d556491aa742efbc72a1c636744f;p=ceph.git mon/Monitor.cc: Clarify calculation precedence for '%' and '?' Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index f04ff4140aee..d7d7cf2f7e01 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2228,7 +2228,7 @@ void Monitor::get_health(string& status, bufferlist *detailbl, Formatter *f) f->dump_int("epoch", get_epoch()); f->dump_int("round", timecheck_round); f->dump_stream("round_status") - << (timecheck_round%2 ? "on-going" : "finished"); + << ((timecheck_round%2) ? "on-going" : "finished"); } if (!timecheck_skews.empty()) {