From 00a43549a2fa7fcb9c8742cce98626bb184975e5 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 29 Jan 2021 18:48:32 +0800 Subject: [PATCH] Update index.py --- plugins/swap/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'