From c7183ec155a44863c23dbb99c2c429df1d53621d Mon Sep 17 00:00:00 2001 From: jQubz Date: Mon, 15 Feb 2021 20:29:32 +0100 Subject: [PATCH 1/2] Updated ModifyFan.ts to improve log Previously log when running atrofac command would leave spaces at start of lines and strange trailing colon. It's fixed now. --- electron/src/IPCEvents/atrofac/ModifyFan.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/src/IPCEvents/atrofac/ModifyFan.ts b/electron/src/IPCEvents/atrofac/ModifyFan.ts index 5c6c560..c3c681d 100644 --- a/electron/src/IPCEvents/atrofac/ModifyFan.ts +++ b/electron/src/IPCEvents/atrofac/ModifyFan.ts @@ -60,7 +60,7 @@ export const modifyFanCurve = async ( if (stderr.indexOf('Success') !== -1) { //@ts-ignore LOGGER.info( - `Result of atrofac fan curve: \ncpu: ${cpuCurve}\n gpu: ${gpuCurve}:\n result:${stderr}` + `Result of atrofac fan curve: \ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${stderr}` ); //@ts-ignore resolve({ cpuCurve, gpuCurve }); @@ -76,7 +76,7 @@ export const modifyFanCurve = async ( } } else { LOGGER.info( - `Result of atrofac fan curve: \ncpu: ${cpuCurve}\n gpu: ${gpuCurve}:\n result:${out}` + `Result of atrofac fan curve: \ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${out}` ); //@ts-ignore resolve({ cpuCurve, gpuCurve }); From 2517e6a49c523b3123d9e13727a6b6f50c55ee96 Mon Sep 17 00:00:00 2001 From: jQubz Date: Mon, 15 Feb 2021 20:31:56 +0100 Subject: [PATCH 2/2] Updated ModifyFan.ts to improve log Previously log when running atrofac command would leave spaces at start of lines and strange trailing colon. It's fixed now. --- electron/src/IPCEvents/atrofac/ModifyFan.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/src/IPCEvents/atrofac/ModifyFan.ts b/electron/src/IPCEvents/atrofac/ModifyFan.ts index c3c681d..fa39933 100644 --- a/electron/src/IPCEvents/atrofac/ModifyFan.ts +++ b/electron/src/IPCEvents/atrofac/ModifyFan.ts @@ -60,7 +60,7 @@ export const modifyFanCurve = async ( if (stderr.indexOf('Success') !== -1) { //@ts-ignore LOGGER.info( - `Result of atrofac fan curve: \ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${stderr}` + `Result of atrofac fan curve:\ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${stderr}` ); //@ts-ignore resolve({ cpuCurve, gpuCurve }); @@ -76,7 +76,7 @@ export const modifyFanCurve = async ( } } else { LOGGER.info( - `Result of atrofac fan curve: \ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${out}` + `Result of atrofac fan curve:\ncpu: ${cpuCurve}\ngpu: ${gpuCurve}\nresult:${out}` ); //@ts-ignore resolve({ cpuCurve, gpuCurve });