Commits

Sean Wilkinson  committed ffd652a

Fixed an off-by-one error in world map

  • Participants
  • Parent commits b5a6f3f

Comments (0)

Files changed (1)

File src/browser-client/world-map.js

     update_summary = function (data) {
      // This function needs documentation.
         var i, n, total;
-        n = data.length - 1;
+        n = data.length;
         total = {
             calls: 0,
             countries: 0
         };
-        for (i = 0; i < n; i += 1) {
+        for (i = 1; i < n; i += 1) {
             if (data[i][1] > 0) {
                 total.calls += data[i][1];
                 total.countries += 1;