Skip to content

Commit

Permalink
Fix TestVirtual_memory on OpenBSD
Browse files Browse the repository at this point in the history
On OpenBSD, the total is used + free + cached + inactive like on macOS.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Aug 31, 2020
1 parent c466301 commit 62354ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mem/mem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 62354ea

Please sign in to comment.