mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-06 19:29:13 +08:00
Merge pull request #931 from tklauser/openbsd-mem-test-fix
Fix TestVirtual_memory on OpenBSD
This commit is contained in:
commit
e643eaefcc
@ -33,7 +33,7 @@ func TestVirtual_memory(t *testing.T) {
|
||||
case "windows":
|
||||
total = v.Used + v.Available
|
||||
totalStr = "used + available"
|
||||
case "darwin":
|
||||
case "darwin", "openbsd":
|
||||
total = v.Used + v.Free + v.Cached + v.Inactive
|
||||
totalStr = "used + free + cached + inactive"
|
||||
case "freebsd":
|
||||
|
Loading…
x
Reference in New Issue
Block a user