Commit 3d13214a authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 9416629e b1672d5e
Pipeline #1847 passed with stages
in 16 minutes and 7 seconds
......@@ -682,7 +682,7 @@ init = () ->
# 获取可用内存
memory_usage = global.memory_usage = 0
get_memory_usage = global.get_memory_usage = ()->
percentUsed = os.freemem() / os.totalmem() * 100
percentUsed = (1 - os.freemem() / os.totalmem()) * 100
memory_usage = global.memory_usage = percentUsed
return
get_memory_usage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment