From fa120ed43f14da5ffe4b56b1e8ba9128c4a44295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 25 Sep 2014 19:05:02 +0200 Subject: [PATCH] The avg nbr of global variables is prety high... --- app/public/scripts/resultsCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index 63f77c1..be230b2 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -255,7 +255,7 @@ app.controller('ResultsCtrl', function ($scope) { $scope.phantomasResults.metrics.evalCalls * 2 + $scope.phantomasResults.metrics.jsErrors * 10 + $scope.phantomasResults.metrics.consoleMessages / 2 + - $scope.phantomasResults.metrics.globalVariables / 10; + $scope.phantomasResults.metrics.globalVariables / 20; if (score > 5) { note = 'B'; }