fix for avg uptime calc

This commit is contained in:
Erik 2021-06-13 17:52:03 +03:00
parent ed9905a238
commit 757601c608
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -82,7 +82,7 @@ class StatsCommand extends Command {
});
return acc;
}, {});
totalValues.uptime = this.client.resolver.timeAgo(Math.floor(totalValues.uptime / 1000), true, true, true);
totalValues.uptime = this.client.resolver.timeAgo(Math.floor(totalValues.uptime/ shard.count / 1000), true, true, true);
totalValues.avgMem = Math.floor(totalValues.memory / shard.count);
//System information