turn into megabytes
@@ -399,8 +399,8 @@ class Owner(commands.Cog):
@commands.command(name="memory", aliases=["ram", "mem"])
@commands.is_owner()
async def get_memory_usage(self, ctx):
- mem_kB = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
- await ctx.send(embed=discord.Embed(color=discord.Color.green(), description=f"Memory in use: ``{mem_kB} kB``"))
+ mem_ = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
+ await ctx.send(embed=discord.Embed(color=discord.Color.green(), description=f"Memory in use: ``{mem*.001} Megabytes``"))
def setup(bot):
