Convert array index to integer when computing pause distribution for spinning-balls.

BUG=
TEST=

Review URL: http://codereview.chromium.org/8430006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9852 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2011-10-31 17:26:59 +00:00
parent e67096aded
commit da49e4d83d

View File

@ -353,8 +353,8 @@ function updateStats(pause) {
if (pause > 20) {
sumOfSquaredPauses += (pause - 20) * (pause - 20);
}
pauseDistribution[pause / 10] |= 0;
pauseDistribution[pause / 10]++;
pauseDistribution[Math.floor(pause / 10)] |= 0;
pauseDistribution[Math.floor(pause / 10)]++;
}