Merge pull request #659 from mingrammer/gofmt

Refactor with gofmt
tags/v2.19.03 v2.19.03
shirou 6 years ago committed by GitHub
commit 2cbc9195c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -123,7 +123,7 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
ret.Cached += ret.SReclaimable
if !memavail {
if (activeFile && inactiveFile && sReclaimable) {
if activeFile && inactiveFile && sReclaimable {
ret.Available = calcuateAvailVmem(ret, retEx)
} else {
ret.Available = ret.Cached + ret.Free

Loading…
Cancel
Save