From 4d3e34cd8f66b524bf93ce5463daa46b1079b5c1 Mon Sep 17 00:00:00 2001 From: Essem Date: Wed, 21 Sep 2022 11:31:39 -0500 Subject: [PATCH] Fix stat counts --- utils/pm2/ext.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/pm2/ext.js b/utils/pm2/ext.js index 1659d68..17e3f22 100644 --- a/utils/pm2/ext.js +++ b/utils/pm2/ext.js @@ -66,6 +66,10 @@ process.on("message", (packet) => { }); function updateStats() { + serverCount = 0; + shardCount = 0; + clusterCount = 0; + responseCount = 0; return new Promise((resolve, reject) => { pm2.list((err, list) => { if (err) reject(err); @@ -105,10 +109,6 @@ function updateStats() { async function dblPost() { logger.main("Posting stats to Top.gg..."); - serverCount = 0; - shardCount = 0; - clusterCount = 0; - responseCount = 0; try { //await updateStats(); await dbl.postStats({