if (e != null && r != null && s != null) {
Rate er = e.getRate(10*60*1000);
Rate rr = r.getRate(10*60*1000);
Rate sr = s.getRate(10*60*1000);
if (er != null && rr != null && sr != null) {
<BUG>long ec = er.getCurrentEventCount();
long rc = rr.getCurrentEventCount();
long sc = sr.getCurrentEventCount();
long tot = ec + rc + sc;
if (tot >= 10) {
if (1000 * sc / tot <= 1000 / 10)
rv--;</BUG>
}

if (e != null && r != null && s != null) {
Rate er = e.getRate(10*60*1000);
Rate rr = r.getRate(10*60*1000);
Rate sr = s.getRate(10*60*1000);
if (er != null && rr != null && sr != null) {
long ec = er.getCurrentEventCount() + er.getLastEventCount();
long rc = rr.getCurrentEventCount() + rr.getLastEventCount();
long sc = sr.getCurrentEventCount() + sr.getLastEventCount();
long tot = ec + rc + sc;
if (tot >= BUILD_TRIES_QUANTITY_OVERRIDE) {
if (1000 * sc / tot <= 1000 / BUILD_TRIES_QUANTITY_OVERRIDE)
rv--;
