diff --git a/plugins/swap/index.py b/plugins/swap/index.py index 34975486f..c3fd1fd19 100755 --- a/plugins/swap/index.py +++ b/plugins/swap/index.py @@ -168,7 +168,7 @@ def initdUinstall(): def swapStatus(): sfile = getServerDir() + '/swapfile' - size = os.path.getsize(sfile) + size = os.path.getsize(sfile) / 1024 / 1024 data = {'size': size} return mw.returnJson(True, "ok", data)