From db7d07af7a0bf37d6520ca8159e0a54483b2e9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 22 Sep 2014 15:52:10 +0200 Subject: [PATCH] Add multipleRequests to network problems list --- app/node_views/results.html | 7 +++++-- app/public/scripts/resultsCtrl.js | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/node_views/results.html b/app/node_views/results.html index 9386d79..27e30e7 100644 --- a/app/node_views/results.html +++ b/app/node_views/results.html @@ -6,7 +6,7 @@ - + @@ -121,7 +121,6 @@
  • Console messages: {{phantomasResults.metrics.consoleMessages}} -
  • Global variables: {{phantomasResults.metrics.globalVariables}} @@ -256,6 +255,10 @@ Connections closed: {{phantomasResults.metrics.closedConnections}}
  • +
  • + Duplicated requests: {{phantomasResults.metrics.multipleRequests}} + +
  • Caching disabled: {{phantomasResults.metrics.cachingDisabled}} diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index 6f53dc0..a8ac6b7 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -378,6 +378,7 @@ app.controller('ResultsCtrl', function ($scope) { var note = 'A'; var score = $scope.phantomasResults.metrics.notFound * 25 + $scope.phantomasResults.metrics.closedConnections * 10 + + $scope.phantomasResults.metrics.multipleRequests * 10 + $scope.phantomasResults.metrics.cachingDisabled * 2 + $scope.phantomasResults.metrics.cachingNotSpecified + $scope.phantomasResults.metrics.cachingTooShort / 2 +