diff -up procfs-406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8/proc_stat_test.go.than procfs-406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8/proc_stat_test.go
--- procfs-406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8/proc_stat_test.go.than 2016-04-11 06:37:23.590234409 -0400
+++ procfs-406e5b7bfd8201a36e2bb5f7bdae0b03380c2ce8/proc_stat_test.go 2016-04-11 07:33:59.835360813 -0400
@@ -1,5 +1,6 @@
package procfs
+import "os"
import "testing"
func TestProcStat(t *testing.T) {
@@ -66,7 +67,7 @@ func TestProcStatResidentMemory(t *testi
t.Fatal(err)
}
- if want, have := 1981*4096, s.ResidentMemory(); want != have {
+ if want, have := 1981*os.Getpagesize(), s.ResidentMemory(); want != have {
t.Errorf("want resident memory %d, have %d", want, have)
}
}