Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server: Remove redundant whitespace in CPU log
Elian Doran15a041a19541
diff --git a/src/www.ts b/src/www.tsindex 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 configurationconst 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();