diff options
author | aiju <aiju@phicode.de> | 2011-07-22 11:53:47 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2011-07-22 11:53:47 +0200 |
commit | 4636a1e21adfe395c2afdce2145da497b913d1d3 (patch) | |
tree | 31e57c40a8df73dac7eecc5780b2f60277314016 | |
parent | b2a8db846b1030b106d129e19b5db0bf745fb5a8 (diff) | |
download | plan9front-4636a1e21adfe395c2afdce2145da497b913d1d3.tar.xz |
cwfs: fixed memsize()
-rw-r--r-- | sys/src/cmd/cwfs/malloc.c | 2 |
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; |