A little houskeeping.

Increasing counter sizes from int to long for averages.
Rename random functions to end with _co instead of _exclusive to
indicate range [close, open[, and to allow future suffixes oc, cc and oo.
This commit is contained in:
Niclas Antti
2019-03-25 12:29:59 +02:00
parent 03121c63d4
commit d40e29d5f6
6 changed files with 31 additions and 31 deletions

View File

@ -71,7 +71,7 @@ bool ResponseStat::is_valid() const
return m_average.num_samples();
}
int ResponseStat::num_samples() const
long ResponseStat::num_samples() const
{
return m_average.num_samples();
}

View File

@ -161,7 +161,7 @@ PRWBackends::iterator backend_cmp_response_time(PRWBackends& sBackends)
}
// Find the winner, role the ball:
double ball = maxbase::Worker::get_current()->random_engine().zero_to_one_exclusive();
double ball = maxbase::Worker::get_current()->random_engine().zero_to_one_co();
double slot_walk {0};
int winner {0};