mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-10 19:29:14 +08:00
remove duped line.
This commit is contained in:
parent
d5a476f628
commit
5846e481c5
@ -20,8 +20,6 @@ func VirtualMemory() (*VirtualMemoryStat, error) {
|
||||
Buffers: uint64(sysinfo.Bufferram),
|
||||
}
|
||||
|
||||
ret.Used = ret.Total - ret.Free
|
||||
|
||||
// TODO: platform independent
|
||||
ret.Available = ret.Free + ret.Buffers + ret.Cached
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user