From 5a1708a60db27f94298d2eb16645cb6466e2f1b6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 9 Jan 2008 09:47:18 +0100 Subject: [PATCH] fit: better messages. --- ucw/fit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ucw/fit.c b/ucw/fit.c index b310c12..a3b2a4f 100644 --- a/ucw/fit.c +++ b/ucw/fit.c @@ -53,13 +53,15 @@ int main(int argc, char **argv) while (!map[max]) max--; - printf("Found subset with %d blocks:\n", max); + printf("Found subset with %d blocks of %d (%.2f%%):\n", max, m, 100.*max/m); + int free = m-max; while (max) { int f = map[max]-2; printf("%7d\t%s\n", files[f].blocks, files[f].name); max -= files[f].blocks; } + printf("%7d\t*FREE*\n", free); return 0; } -- 2.39.2