stats: Fix off-by-one error in distributions.
authorAli Saidi <Ali.Saidi@ARM.com>
Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Mon, 23 Aug 2010 16:18:39 +0000 (11:18 -0500)
commit77937738096e227ebfe5bd2fb999c35032c2c8c4
tree2fb486b2b1f2ae214d30202f8fc45601d8ae4275
parentfa01fbddeb637efe5fc90c9777579008f0af39ed
stats: Fix off-by-one error in distributions.

bkt size isn't evenly divisible by max-min and it would round down,
it's possible to sample a distribution and have no place to put the sample.
When this case occured the simulator would assert.
src/base/statistics.hh