From 71bc3da115348136053166ec61408883416dc1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 3 Jan 2019 19:26:44 +0100 Subject: [PATCH] Bad variable name --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 51d8e181..0c60a0f2 100755 --- a/app.js +++ b/app.js @@ -204,8 +204,8 @@ if (global.gc && isGteMinVersion(process.version, 6)) { const gcStats = require('gc-stats')(); gcStats.on('stats', function ({ pauseMS, gctype }) { - global.statsClient.timing('sqlapi.gc', pauseMS); - global.statsClient.timing(`sqlapi.gctype.${getGCTypeValue(gctype)}`, pauseMS); + statsClient.timing('sqlapi.gc', pauseMS); + statsClient.timing(`sqlapi.gctype.${getGCTypeValue(gctype)}`, pauseMS); }); function getGCTypeValue (type) {