OSDN Git Service

Show in fsck only percentage of used space instead of absolute used and free space...
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Thu, 29 Oct 2009 20:11:08 +0000 (20:11 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Thu, 29 Oct 2009 20:11:08 +0000 (20:11 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@35 60bc1c72-a15a-11de-b98f-4500b42dc123

fsck/main.c

index 9d21049..2867e10 100644 (file)
@@ -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)