1
0
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:
Tobias Klauser 2020-08-31 12:42:46 +02:00
parent c4663018cc
commit 62354ea032

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