|
|
|
@ -84,11 +84,11 @@ def clean_junk_file():
|
|
|
|
|
return sys_clean.clean_junk_file(filenames)
|
|
|
|
|
|
|
|
|
|
# cpu跑满
|
|
|
|
|
@route_bp.route('/sys/cpu_full', methods=['POST'])
|
|
|
|
|
@route_bp.route('/api/sys/cpu_full', methods=['GET'])
|
|
|
|
|
def execute_cpu_full():
|
|
|
|
|
return sys_control.execute_cpu_full_script()
|
|
|
|
|
|
|
|
|
|
# 内存跑满
|
|
|
|
|
@route_bp.route('/sys/memory_full', methods=['POST'])
|
|
|
|
|
@route_bp.route('/api/sys/memory_full', methods=['GET'])
|
|
|
|
|
def execute_memory_full():
|
|
|
|
|
return sys_control.execute_memory_full_script()
|