mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 14:11:14 +00:00
fix(model):mac os cmdline
This commit is contained in:
@@ -122,6 +122,8 @@ def _get_ports_by_cmdline_part(service_keys: List[str]) -> List[int]:
|
|||||||
for process in psutil.process_iter(attrs=["pid", "name", "connections", "cmdline"]):
|
for process in psutil.process_iter(attrs=["pid", "name", "connections", "cmdline"]):
|
||||||
try:
|
try:
|
||||||
# Convert the cmdline list to a single string for easier checking
|
# Convert the cmdline list to a single string for easier checking
|
||||||
|
cmdline = ""
|
||||||
|
if process.info.get("cmdline"):
|
||||||
cmdline = " ".join(process.info["cmdline"])
|
cmdline = " ".join(process.info["cmdline"])
|
||||||
|
|
||||||
# Check if all the service keys are present in the cmdline
|
# Check if all the service keys are present in the cmdline
|
||||||
|
Reference in New Issue
Block a user