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

This commit is contained in:
GoEdgeLab
2022-06-25 20:57:03 +08:00
parent e6dded1965
commit b7682af9dc
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())
}