Fix stat counts

This commit is contained in:
Essem 2022-09-21 11:31:39 -05:00
parent 113f790888
commit 4d3e34cd8f
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 4 additions and 4 deletions

View File

@ -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({