Browse Source

Merge pull request #525 from grob/updates

ringojs-convenient: fixed updates benchmark
Michael Robertson 11 years ago
parent
commit
3b0465a9fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ringojs-convenient/app/views.js

+ 1 - 1
ringojs-convenient/app/views.js

@@ -61,7 +61,7 @@ app.get('/updates/:queries?', function(request, queries) {
    for (var i = 0; i < queries; i++) {
    for (var i = 0; i < queries; i++) {
       randId = ((Math.random() * 10000) | 0) + 1;
       randId = ((Math.random() * 10000) | 0) + 1;
       world = models.store.query('select World.* from World where World.id = :id', {id: randId})[0];
       world = models.store.query('select World.* from World where World.id = :id', {id: randId})[0];
-      world.randomId = ((Math.random() * 10000) | 0) + 1;
+      world.randomNumber = ((Math.random() * 10000) | 0) + 1;
       world.save();
       world.save();
       worlds.push(world.toJSON());
       worlds.push(world.toJSON());
    }
    }