mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
need to wrap windows shell process spawning to avoid warnings on other systems
This commit is contained in:
parent
cbc14e1ca0
commit
3ab518f090
1 changed files with 6 additions and 2 deletions
|
|
@ -70,7 +70,9 @@ export function startMonitoring(window: BrowserWindow) {
|
||||||
mainWindow = window;
|
mainWindow = window;
|
||||||
isRunning = true;
|
isRunning = true;
|
||||||
|
|
||||||
powerShellStart();
|
if (platform === 'win32') {
|
||||||
|
powerShellStart();
|
||||||
|
}
|
||||||
|
|
||||||
void collectAndSendCpuMetrics();
|
void collectAndSendCpuMetrics();
|
||||||
cpuInterval = setInterval(() => {
|
cpuInterval = setInterval(() => {
|
||||||
|
|
@ -105,7 +107,9 @@ export function stopMonitoring() {
|
||||||
}
|
}
|
||||||
isRunning = false;
|
isRunning = false;
|
||||||
|
|
||||||
powerShellRelease();
|
if (platform === 'win32') {
|
||||||
|
powerShellRelease();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTrayWithMetrics() {
|
function updateTrayWithMetrics() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue