From dd1295362734a2f0d4bb7fa4e5dbbb5f1bf0eaac Mon Sep 17 00:00:00 2001 From: soulgalore Date: Thu, 16 Apr 2015 15:00:49 +0200 Subject: [PATCH] add the number of runs per browser #645 --- lib/graphite/graphiteCollector.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/graphite/graphiteCollector.js b/lib/graphite/graphiteCollector.js index 27de7d281..680f5855e 100644 --- a/lib/graphite/graphiteCollector.js +++ b/lib/graphite/graphiteCollector.js @@ -49,6 +49,10 @@ GraphiteCollector.prototype._getPageStats = function(page) { statistics += this._getGPSIStats(page, urlKey); statistics += this._getWPTStats(page, urlKey); statistics += this._getAssetsStats(page, urlKey); + + // and add the number of runs, lets use to divide + statistics += this.namespace + '.' + urlKey + 'config.runs ' + this.config.no + this.timeStamp; + return statistics; }; @@ -111,6 +115,8 @@ GraphiteCollector.prototype._getBrowserTimeStats = function(page, urlKey) { } }); } + + return statistics; };