This commit is contained in:
midoks
2021-01-29 18:42:39 +08:00
parent 1eccc9cb7c
commit ebd09842a2
2 changed files with 2 additions and 5 deletions
-1
View File
@@ -4,7 +4,6 @@
<p class="bgw" onclick="pluginService('swap');">服务</p>
<p onclick="pluginInitD('swap');">自启动</p>
<p onclick="pluginConfig('swap');">配置修改</p>
<p onclick="pluginLogs('swap','','run_log');">日志</p>
</div>
<div class="bt-w-con pd15">
<div class="soft-man-con"></div>
+2 -4
View File
@@ -59,10 +59,8 @@ def getArgs():
def status():
data = mw.execShell(
"ps -ef|grep swap |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'")
if data[0] == '':
data = mw.execShell("free -m|grep Swap|awk '{print $2}'")
if data[0] == '0':
return 'stop'
return 'start'