lock down metrics and spelling

This commit is contained in:
Henry Oswald 2015-09-17 10:42:36 +01:00
parent af21e0aec6
commit a427634cbb
2 changed files with 6 additions and 6 deletions

View file

@ -12,9 +12,9 @@
"body-parser": "^1.12.0", "body-parser": "^1.12.0",
"coffee-script": "^1.9.1", "coffee-script": "^1.9.1",
"express": "^4.12.1", "express": "^4.12.1",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master", "logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
"lru-cache": "^2.5.0", "lru-cache": "^2.5.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git", "metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.3.0",
"mongojs": "1.3.0", "mongojs": "1.3.0",
"node-statsd": "0.0.3", "node-statsd": "0.0.3",
"redis": "~0.8.4", "redis": "~0.8.4",

View file

@ -80,7 +80,7 @@ q.drain = () ->
console.log('all items have been processed'); console.log('all items have been processed');
for i in [0 .. 1000] for i in [0 .. 1000]
if Math.random() < 0.1 q.push({correct: Math.floor(30*Math.random()) + 1, incorrect: Math.floor(3*Math.random())})
q.push({correct: Math.floor(10000*Math.random()), incorrect: Math.floor(100*Math.random())}) # if Math.random() < 0.1
else # else
q.push({correct: Math.floor(3*Math.random()) + 1, incorrect: Math.floor(3*Math.random())}) # q.push({correct: Math.floor(100*Math.random()) + 1, incorrect: Math.floor(3*Math.random())})