Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
b1672d5e
Commit
b1672d5e
authored
Dec 23, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory
parent
2e362c65
Pipeline
#1848
failed with stages
in 15 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ygopro-server.coffee
ygopro-server.coffee
+1
-1
No files found.
ygopro-server.coffee
View file @
b1672d5e
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment