Removing pasted code

pull/8/head
sgoudham 4 years ago
parent fa2a85c3d0
commit ad157ed7e1

@ -215,7 +215,8 @@ class Info(commands.Cog):
with proc.oneshot(): with proc.oneshot():
uptime = datetime.timedelta(seconds=time() - proc.create_time()) uptime = datetime.timedelta(seconds=time() - proc.create_time())
cpu = proc.cpu_times() cpu = proc.cpu_times()
cpu_time = datetime.timedelta(seconds=cpu.system + cpu.user) if cpu:
cpu_time = datetime.timedelta(seconds=cpu.system + cpu.user)
mem_total = virtual_memory().total / (1024 ** 2) mem_total = virtual_memory().total / (1024 ** 2)
mem_of_total = proc.memory_percent() mem_of_total = proc.memory_percent()
mem_usage = mem_total * (mem_of_total / 100) mem_usage = mem_total * (mem_of_total / 100)

Loading…
Cancel
Save