From 15a041a19541333728de2f744b6cd2e988807ee0 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 3 Sep 2024 19:03:52 +0300 Subject: [PATCH] server: Remove redundant whitespace in CPU log --- src/www.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/www.ts b/src/www.ts index e8ddfc9fc9..5986cc1b28 100644 --- a/src/www.ts +++ b/src/www.ts @@ -59,9 +59,11 @@ async function startTrilium() { log.info(JSON.stringify(appInfo, null, 2)); + // for perf. issues it's good to know the rough configuration const cpuInfos = (await import('os')).cpus(); if (cpuInfos && cpuInfos[0] !== undefined) { // https://github.com/zadam/trilium/pull/3957 - log.info(`CPU model: ${cpuInfos[0].model}, logical cores: ${cpuInfos.length} freq: ${cpuInfos[0].speed} Mhz`); // for perf. issues it's good to know the rough configuration + const cpuModel = (cpuInfos[0].model || "").trimEnd(); + log.info(`CPU model: ${cpuModel}, logical cores: ${cpuInfos.length}, freq: ${cpuInfos[0].speed} Mhz`); } const httpServer = startHttpServer();