2048.html
changeset 70 01076b56feae
parent 69 cbdfc1072009
child 71 aa0240db128a
equal deleted inserted replaced
69:cbdfc1072009 70:01076b56feae
   226   </div>
   226   </div>
   227 
   227 
   228   <div id="report-area" class="area">
   228   <div id="report-area" class="area">
   229     <h1>Reports</h1>
   229     <h1>Reports</h1>
   230     <div class="settings">
   230     <div class="settings">
   231       <div class="setting"><input type="text" id="stat-count-limit" value="10"> times</div>
   231       <div class="setting"><input type="text" id="stat-count-limit" value="100"> times</div>
   232       <div class="setting">limit to <input type="text" id="stat-time-limit" value="10"> sec</div>
   232       <div class="setting">limit to <input type="text" id="stat-time-limit" value="10"> sec</div>
   233       <button id="statistic">Start</button>
   233       <button id="statistic">Start</button>
   234       <div class="clearfix"></div>
   234       <div class="clearfix"></div>
   235     </div>
   235     </div>
   236     <div class="report">
   236     <div class="report">
   680         var row = histo[stat.max];
   680         var row = histo[stat.max];
   681         row.n++;
   681         row.n++;
   682         var speed = (stat.turn * 1000.0) / stat.ts;
   682         var speed = (stat.turn * 1000.0) / stat.ts;
   683         row.minSpeed = Math.min(row.minSpeed, speed);
   683         row.minSpeed = Math.min(row.minSpeed, speed);
   684         row.meanSpeed += speed;
   684         row.meanSpeed += speed;
   685         row.minSpeed = Math.max(row.minSpeed, speed);
   685         row.maxSpeed = Math.max(row.maxSpeed, speed);
   686         row.minTurn = Math.min(row.minTurn, stat.turn);
   686         row.minTurn = Math.min(row.minTurn, stat.turn);
   687         row.meanTurn += stat.turn;
   687         row.meanTurn += stat.turn;
   688         row.maxTurn = Math.max(row.minTurn, stat.turn);
   688         row.maxTurn = Math.max(row.maxTurn, stat.turn);
   689         row.minScore = Math.min(row.minScore, stat.score);
   689         row.minScore = Math.min(row.minScore, stat.score);
   690         row.meanScore += stat.score;
   690         row.meanScore += stat.score;
   691         row.maxScore = Math.max(row.minScore, stat.score);
   691         row.maxScore = Math.max(row.maxScore, stat.score);
   692       }
   692       }
   693       for (var i in histo) {
   693       for (var i in histo) {
   694         var row = histo[i];
   694         var row = histo[i];
   695         var n = row.n;
   695         var n = row.n;
   696         row.meanSpeed = row.meanSpeed / n;
   696         row.meanSpeed = row.meanSpeed / n;