Skip to content

Commit d223cf2

Browse files
committed
fix: import psutil only in method
1 parent 62dd230 commit d223cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/plugins/pgsql/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import psutil
21
from mamonsu.lib.plugin import Plugin, PluginDisableException
32
from .pool import Pooler
43

@@ -43,6 +42,7 @@ def get_num_of_children_pids():
4342
data = line.split()
4443
if data[0] == "PPid:":
4544
ppid = data[1]
45+
import psutil
4646
try:
4747
parent = psutil.Process(int(ppid))
4848
except psutil.NoSuchProcess:

0 commit comments

Comments
 (0)