shithub: riscv

Download patch

ref: 77757dbdb197f09454c73e285439b810030b9414
parent: 3794b1c14f15141eef839109871eb0d020023eff
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Oct 29 17:41:35 EDT 2017

cwfs: use /dev/swap instead of #c/swap to determine memory size

--- a/sys/src/cmd/cwfs/malloc.c
+++ b/sys/src/cmd/cwfs/malloc.c
@@ -13,7 +13,7 @@
 
 	mpcnt = 25;
 	pgsize = userpgs = userused = 0;
-	if(bp = Bopen("#c/swap", OREAD)) {
+	if(bp = Bopen("/dev/swap", OREAD)) {
 		while(s = Brdline(bp, '\n')) {
 			if((n = Blinelen(bp)) < 1)
 				continue;