summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/cwfs/malloc.c2
1 files changed, 1 insertions, 1 deletions
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;