Commit da49e4d8 authored by ulan@chromium.org's avatar ulan@chromium.org

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
parent e67096ad
...@@ -353,8 +353,8 @@ function updateStats(pause) { ...@@ -353,8 +353,8 @@ function updateStats(pause) {
if (pause > 20) { if (pause > 20) {
sumOfSquaredPauses += (pause - 20) * (pause - 20); sumOfSquaredPauses += (pause - 20) * (pause - 20);
} }
pauseDistribution[pause / 10] |= 0; pauseDistribution[Math.floor(pause / 10)] |= 0;
pauseDistribution[pause / 10]++; pauseDistribution[Math.floor(pause / 10)]++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment