mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
fixed some formatting on windows @server command
This commit is contained in:
parent
9e8c307bc4
commit
5191ace2a1
1 changed files with 3 additions and 3 deletions
|
|
@ -680,7 +680,7 @@ class CmdServerLoad(MuxCommand):
|
|||
if has_psutil:
|
||||
loadavg = psutil.cpu_percent()
|
||||
_mem = psutil.virtual_memory()
|
||||
rmem = _mem.used
|
||||
rmem = _mem.used / (1000 * 1000)
|
||||
vmem = "N/A on Windows"
|
||||
pmem = _mem.percent
|
||||
rusage = "N/A on Windows"
|
||||
|
|
@ -691,9 +691,9 @@ class CmdServerLoad(MuxCommand):
|
|||
return
|
||||
# Display table
|
||||
loadtable = EvTable("property", "statistic", align="l")
|
||||
loadtable.add_row("Server load", "%g" % loadavg)
|
||||
loadtable.add_row("Total CPU load", "%g %%" % loadavg)
|
||||
loadtable.add_row("Total computer memory usage","%g MB (%g%%)" % (rmem, pmem))
|
||||
loadtable.add_row("Process ID", "%g" % pid),
|
||||
loadtable.add_row("Memory usage","%g MB (%g%%)" % (rmem, pmem))
|
||||
else:
|
||||
loadtable = "Not available on Windows without 'psutil' library " \
|
||||
"(install with {wpip install psutil{n)."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue