mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	对于小内存(不大于2G),缩短服务统计导入数据库的时间
This commit is contained in:
		
							
								
								
									
										14
									
								
								internal/utils/system_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								internal/utils/system_test.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
 | 
			
		||||
 | 
			
		||||
package utils_test
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"github.com/TeaOSLab/EdgeAPI/internal/utils"
 | 
			
		||||
	"testing"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestSystemMemoryGB(t *testing.T) {
 | 
			
		||||
	t.Log(utils.SystemMemoryGB())
 | 
			
		||||
	t.Log(utils.SystemMemoryGB())
 | 
			
		||||
	t.Log(utils.SystemMemoryGB())
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user