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>
pull/931/head
Tobias Klauser 5 years ago
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…
Cancel
Save