mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-02 22:17:08 +08:00
Fix TestVirtual_memory on OpenBSD
On OpenBSD, the total is used + free + cached + inactive like on macOS. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This commit is contained in:
parent
c4663018cc
commit
62354ea032
@ -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