From 13d459170f1bf2adee21742e26cff553635b7552 Mon Sep 17 00:00:00 2001 From: resver Date: Thu, 29 Oct 2009 20:11:08 +0000 Subject: [PATCH] Show in fsck only percentage of used space instead of absolute used and free space values because they cannot be calculated accurately. git-svn-id: http://exfat.googlecode.com/svn/trunk@35 60bc1c72-a15a-11de-b98f-4500b42dc123 --- fsck/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fsck/main.c b/fsck/main.c index 9d21049..2867e10 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -50,12 +50,7 @@ static void sbck(const struct exfat* ef) printf("Block size %8u bytes\n", block_size); printf("Cluster size %8u bytes\n", cluster_size); printf("Total space %8"PRIu64" MB\n", bytes2mb(total)); - printf("Used space %8"PRIu64" MB (%hhu%%)\n", - bytes2mb(total * ef->sb->allocated_percent / 100), - ef->sb->allocated_percent); - printf("Free space %8"PRIu64" MB (%hhu%%)\n", - bytes2mb(total * (100 - ef->sb->allocated_percent) / 100), - 100 - ef->sb->allocated_percent); + printf("Used space %8hhu%%\n", ef->sb->allocated_percent); } static void dirck(struct exfat* ef, const char* path) -- 2.11.0