Skip to content

Commit

Permalink
server: Remove redundant whitespace in CPU log
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Sep 3, 2024
1 parent 891621b commit 15a041a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/www.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 15a041a

Please sign in to comment.