diff --git a/sys/src/cmd/cwfs/malloc.c b/sys/src/cmd/cwfs/malloc.c index 048a81209..aa7debd27 100644 --- a/sys/src/cmd/cwfs/malloc.c +++ b/sys/src/cmd/cwfs/malloc.c @@ -28,7 +28,7 @@ memsize(void) } } Bterm(bp); - if (pgsize > 0 && userused > userpgs) + if (pgsize > 0 && userused < userpgs) return (userpgs - userused)*pgsize; } return 64*MB;