ref: 4636a1e21adfe395c2afdce2145da497b913d1d3
parent: b2a8db846b1030b106d129e19b5db0bf745fb5a8
author: aiju <[email protected]>
date: Fri Jul 22 07:53:47 EDT 2011
cwfs: fixed memsize()
--- a/sys/src/cmd/cwfs/malloc.c
+++ b/sys/src/cmd/cwfs/malloc.c
@@ -28,7 +28,7 @@
}
}
Bterm(bp);
- if (pgsize > 0 && userused > userpgs)
+ if (pgsize > 0 && userused < userpgs)
return (userpgs - userused)*pgsize;
}
return 64*MB;