lock CPU info for perf context

This commit is contained in:
zadam 2020-06-07 23:56:51 +02:00
parent 401a3f0ecb
commit 28dc6b93ca

View File

@ -68,6 +68,9 @@ async function startTrilium() {
log.info(JSON.stringify(appInfo, null, 2));
const cpuInfos = require('os').cpus();
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
/**
* Listen on provided port, on all network interfaces.
*/