shithub: gefs

Download patch

ref: 4eddb6b732fee3caede4199645aafc5d31fb48b0
parent: 63bf338613dc47c4043a004d0816deab8d06ee2c
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Dec 17 15:28:28 EST 2023

cons: show per-arena df percentages

--- a/cons.c
+++ b/cons.c
@@ -210,7 +210,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.0*(double)a->used/(double)a->size);
 	}
 	hsize = size;
 	hused = used;