shithub: gefs

Download patch

ref: c5c5553b4518e787443a462cba1f657499ba257e
parent: 17c81c4b2f1b5c4e217fc50b58636db84f9a65a0
author: Ori Bernstein <[email protected]>
date: Sat Jan 6 16:45:47 EST 2024

cons: 'avail' should be 'size', and showing free space is also useful

--- a/cons.c
+++ b/cons.c
@@ -232,8 +232,8 @@
 	pct = 100.0*(double)used/(double)size;
 	fprint(fd, "fill:\t%.2f%%\n", pct);
 	fprint(fd, "used:\t%lld (%.2f %s)\n", used, hused, units[uu]);
-	fprint(fd, "avail:\t%lld (%.2f %s)\n", size, hsize, units[us]);
-
+	fprint(fd, "size:\t%lld (%.2f %s)\n", size, hsize, units[us]);
+	fprint(fd, "free:\t%lld (%.2f %s)\n", size-used, hsize, units[us]);
 }
 
 void