fix error spam from ServerStatsService when running on Windows
This commit is contained in:
		
							parent
							
								
									994b6ef7d1
								
							
						
					
					
						commit
						5e352033c8
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -108,5 +108,6 @@ async function net() {
 | 
			
		|||
 | 
			
		||||
// FS STAT
 | 
			
		||||
async function fs() {
 | 
			
		||||
	return await si.disksIO().catch(() => ({ rIO_sec: 0, wIO_sec: 0 }));
 | 
			
		||||
	const io = await si.disksIO().catch(() => null);
 | 
			
		||||
	return io ?? { rIO_sec: 0, wIO_sec: 0 };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue