From fddb641945617c0d8130a45dfb6ee6b4bccf1942 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Thu, 14 Nov 2024 22:35:07 +0800 Subject: [PATCH] change default priority --- src/main/core/manager.ts | 2 +- src/renderer/src/components/settings/mihomo-config.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/core/manager.ts b/src/main/core/manager.ts index 103862f..fb3db58 100644 --- a/src/main/core/manager.ts +++ b/src/main/core/manager.ts @@ -62,7 +62,7 @@ export async function startCore(detached = false): Promise[]> { core = 'mihomo', autoSetDNS = true, diffWorkDir = false, - mihomoCpuPriority = 'PRIORITY_HIGHEST' + mihomoCpuPriority = 'PRIORITY_NORMAL' } = await getAppConfig() const { 'log-level': logLevel } = await getControledMihomoConfig() if (existsSync(path.join(dataDir(), 'core.pid'))) { diff --git a/src/renderer/src/components/settings/mihomo-config.tsx b/src/renderer/src/components/settings/mihomo-config.tsx index 7cfda65..bdcc815 100644 --- a/src/renderer/src/components/settings/mihomo-config.tsx +++ b/src/renderer/src/components/settings/mihomo-config.tsx @@ -23,7 +23,7 @@ const MihomoConfig: React.FC = () => { pauseSSID = [], delayTestUrl, userAgent, - mihomoCpuPriority = 'PRIORITY_HIGHEST', + mihomoCpuPriority = 'PRIORITY_NORMAL', proxyCols = 'auto' } = appConfig || {} const [url, setUrl] = useState(delayTestUrl)