mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	sometimes CPU info is not available #3957
This commit is contained in:
		
							parent
							
								
									929f7f3114
								
							
						
					
					
						commit
						c35167f2f5
					
				| @ -60,7 +60,9 @@ function startTrilium() { | |||||||
|     log.info(JSON.stringify(appInfo, null, 2)); |     log.info(JSON.stringify(appInfo, null, 2)); | ||||||
| 
 | 
 | ||||||
|     const cpuInfos = require('os').cpus(); |     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
 |     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 httpServer = startHttpServer(); |     const httpServer = startHttpServer(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam