mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-15 00:30:24 +08:00
优化代码
This commit is contained in:
17
internal/utils/mem/system_test.go
Normal file
17
internal/utils/mem/system_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package memutils_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils/mem"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSystemMemoryGB(t *testing.T) {
|
||||
t.Log(memutils.SystemMemoryGB())
|
||||
t.Log(memutils.SystemMemoryGB())
|
||||
t.Log(memutils.SystemMemoryGB())
|
||||
t.Log(memutils.SystemMemoryBytes())
|
||||
t.Log(memutils.SystemMemoryBytes())
|
||||
t.Log(memutils.SystemMemoryBytes()>>30, "GB")
|
||||
}
|
||||
Reference in New Issue
Block a user