diff --git a/plugins/swap/index.py b/plugins/swap/index.py index 50f4decfa..8e97de2b4 100755 --- a/plugins/swap/index.py +++ b/plugins/swap/index.py @@ -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'