mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 07:19:26 +08:00
Update index.py
This commit is contained in:
@@ -60,7 +60,7 @@ def getArgs():
|
||||
|
||||
def status():
|
||||
data = mw.execShell("free -m|grep Swap|awk '{print $2}'")
|
||||
if data[0] == '0':
|
||||
if data[0].strip() == '0':
|
||||
return 'stop'
|
||||
return 'start'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user