shithub: gefs

Download patch

ref: 39519029e4e47c669e56f4fe3f35b1e782b4fc5b
parent: 42b86431edeed372635a23fc6b22b7b04e015669
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 25 23:49:15 EST 2023

cons: show arena fill in percent

--- a/cons.c
+++ b/cons.c
@@ -220,7 +220,7 @@
 		size += a->size;
 		used += a->used;
 		qunlock(a);
-		fprint(fd, "arena %d: %llx/%llx (%.2f)\n", i, a->used, a->size, (double)a->used/(double)a->size);
+		fprint(fd, "arena %d: %llx/%llx (%.2f%%)\n", i, a->used, a->size, 100*(double)a->used/(double)a->size);
 	}
 	hsize = size;
 	hused = used;