对于小内存(不大于2G),缩短服务统计导入数据库的时间

This commit is contained in:
刘祥超
2022-06-25 20:57:03 +08:00
parent 4bda78aa8c
commit 4fa6b03238
3 changed files with 48 additions and 0 deletions

View 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())
}