Skip to content

Commit 00c6c9f

Browse files
committed
bugfix
1 parent 979a925 commit 00c6c9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/liteserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import psutil
22

33
from modules.module import MtcModule
4-
from mytoninstaller.mytoninstaller import set_node_argument
54

65

76
class LiteserverModule(MtcModule):
@@ -10,13 +9,15 @@ class LiteserverModule(MtcModule):
109
default_value = False
1110

1211
def enable(self):
12+
from mytoninstaller.mytoninstaller import set_node_argument
1313
set_node_argument(self.local, ["--celldb-no-preload-all"])
1414
data = psutil.virtual_memory()
1515
ram = data.total / 2**30
1616
if ram < 100:
1717
set_node_argument(self.local, ["--celldb-cache-size", "1073741824"])
1818

1919
def disable(self):
20+
from mytoninstaller.mytoninstaller import set_node_argument
2021
from mytoninstaller.node_args import get_node_args
2122
set_node_argument(self.local, ["--celldb-no-preload-all", "-d"])
2223
if get_node_args()['--celldb-cache-size']:

0 commit comments

Comments
 (0)