Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Jan 4, 2024
1 parent 4bf9651 commit 4543df2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/memory/meminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func MemTotalNormal() (uint64, error) {
if time.Since(t) < 60*time.Second {
return total, nil
}
return memTotalNormal()
return totalMem()
}

func memTotalNormal() (uint64, error) {
func totalMem() (uint64, error) {
v, err := mem.VirtualMemory()
if err != nil {
return 0, err
Expand Down Expand Up @@ -200,7 +200,7 @@ func InitMemoryHook() {
if err != nil {
return
}
physicalValue, err := memTotalNormal()
physicalValue, err := totalMem()
if err != nil {
return
}
Expand Down

0 comments on commit 4543df2

Please sign in to comment.