Fix stat counts
This commit is contained in:
parent
113f790888
commit
4d3e34cd8f
1 changed files with 4 additions and 4 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue