diff options
author | relan <relan@users.noreply.github.com> | 2009-10-29 20:11:08 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:10 +0300 |
commit | a055896d5f46cd75e6360dc9c26dea957af10fe4 (patch) | |
tree | 5e630b641dbb7883656aa4b17f0f9ecaec954b1a /fsck | |
parent | f7eb28236e9971968d310d81df2059267bfdcaf8 (diff) | |
download | android_external_exfat-a055896d5f46cd75e6360dc9c26dea957af10fe4.tar.gz android_external_exfat-a055896d5f46cd75e6360dc9c26dea957af10fe4.tar.bz2 android_external_exfat-a055896d5f46cd75e6360dc9c26dea957af10fe4.zip |
Show in fsck only percentage of used space.
Absolute used and free space values cannot be calculated accurately.
Diffstat (limited to 'fsck')
-rw-r--r-- | fsck/main.c | 7 |
1 files changed, 1 insertions, 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) |