Commit b1672d5e authored by nanahira's avatar nanahira

memory

parent 2e362c65
Pipeline #1848 failed with stages
in 15 minutes and 35 seconds
......@@ -611,7 +611,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