]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor.cc: Clarify calculation precedence for '%' and '?'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 12:25:41 +0000 (13:25 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 12:25:41 +0000 (13:25 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Monitor.cc

index f04ff4140aeed7ac9e0412bc2fc64addeff1a5d7..d7d7cf2f7e01a422bd2736597eb9f79ed8cd064e 100644 (file)
@@ -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()) {