From a427634cbb6d6d8ec544526b4136a8d8f360eae7 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 17 Sep 2015 10:42:36 +0100 Subject: [PATCH] lock down metrics and spelling --- services/spelling/package.json | 4 ++-- services/spelling/test/stress/coffee/stressTest.coffee | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/spelling/package.json b/services/spelling/package.json index aeea6a4090..61e3e51c41 100644 --- a/services/spelling/package.json +++ b/services/spelling/package.json @@ -12,9 +12,9 @@ "body-parser": "^1.12.0", "coffee-script": "^1.9.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", - "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", "node-statsd": "0.0.3", "redis": "~0.8.4", diff --git a/services/spelling/test/stress/coffee/stressTest.coffee b/services/spelling/test/stress/coffee/stressTest.coffee index 3712ebb379..5ff53996c1 100644 --- a/services/spelling/test/stress/coffee/stressTest.coffee +++ b/services/spelling/test/stress/coffee/stressTest.coffee @@ -80,7 +80,7 @@ q.drain = () -> console.log('all items have been processed'); for i in [0 .. 1000] - if Math.random() < 0.1 - q.push({correct: Math.floor(10000*Math.random()), incorrect: Math.floor(100*Math.random())}) - else - q.push({correct: Math.floor(3*Math.random()) + 1, incorrect: Math.floor(3*Math.random())}) + q.push({correct: Math.floor(30*Math.random()) + 1, incorrect: Math.floor(3*Math.random())}) + # if Math.random() < 0.1 + # else + # q.push({correct: Math.floor(100*Math.random()) + 1, incorrect: Math.floor(3*Math.random())})