Update index.py

This commit is contained in:
midoks
2021-01-29 18:48:32 +08:00
parent ebd09842a2
commit 00a43549a2
+1 -1
View File
@@ -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'