forked from gooberinc/goober
added cpu stats
This commit is contained in:
parent
e8779f16df
commit
9215602ecc
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ class BaseCommands(commands.Cog):
|
||||||
used_memory = memory_info.used / (1024**3)
|
used_memory = memory_info.used / (1024**3)
|
||||||
|
|
||||||
|
|
||||||
cpu_name = cpuinfo.get_cpu_info()["brand"]
|
cpu_name = cpuinfo.get_cpu_info()["brand_raw"]
|
||||||
|
|
||||||
|
|
||||||
with open(memory_file, "r") as file:
|
with open(memory_file, "r") as file:
|
||||||
|
@ -149,7 +149,7 @@ class BaseCommands(commands.Cog):
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=k.system_info(),
|
name=k.system_info(),
|
||||||
value=f"""
|
value=f"""
|
||||||
{k.memory_usage(used=used_memory, total=total_memory, percent=round(used_memory/total_memory * 100))}
|
{k.memory_usage(used=round(used_memory,2), total=round(total_memory,2), percent=round(used_memory/total_memory * 100))}
|
||||||
{k.cpu_info(cpu_name)}
|
{k.cpu_info(cpu_name)}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue