1
0
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:
Lomanic 2020-08-31 16:57:20 +02:00 committed by GitHub
commit e643eaefcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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":