Floored memory usage in stats

This commit is contained in:
Jonny_Bro (Nikita) 2024-03-06 09:22:00 +05:00 committed by GitHub
parent 7130632844
commit 00d63d01b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ class Stats extends BaseCommand {
},
{
name: client.customEmojis.ram + " " + interaction.translate("general/stats:RAM_TITLE"),
value: `\`${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}MB\``,
value: `\`${Math.floor(process.memoryUsage().heapUsed / 1024 / 1024)}MB\``,
inline: true,
},
{