We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f8a77 commit 112b5c8Copy full SHA for 112b5c8
utils/SystemUtil.py
@@ -140,7 +140,7 @@ def restart_process(path):
140
:param path: 执行脚本的全路径
141
:return:
142
"""
143
- if psutil.virtual_memory().percent < 80:
+ if psutil.virtual_memory().percent >= 80:
144
print('内存使用:', psutil.Process(os.getpid()).memory_info().rss)
145
print("当前内存占用率:", psutil.virtual_memory().percent)
146
# if gc.isenabled():
0 commit comments