mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-12 19:43:44 +08:00
Use long long to calculate the percentage
of the number of blocks in use in the filesystem.
This commit is contained in:
parent
acd8df68c9
commit
636a954a30
@ -1,3 +1,8 @@
|
||||
2001-06-29 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* unix.c (show_stats): Use long long to calculate the percentage
|
||||
of the number of blocks in use in the filesystem.
|
||||
|
||||
2001-06-23 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* Release of E2fsprogs 1.22
|
||||
|
@ -130,7 +130,8 @@ static void show_stats(e2fsck_t ctx)
|
||||
ctx->fs_ind_count, ctx->fs_dind_count, ctx->fs_tind_count);
|
||||
printf (_("%8d blocks used (%d%%)\n"
|
||||
"%8d bad blocks\n"), blocks_used,
|
||||
100 * blocks_used / blocks, ctx->fs_badblocks_count);
|
||||
(int) ((long long) 100 * blocks_used / blocks),
|
||||
ctx->fs_badblocks_count);
|
||||
printf (_("\n%8d regular files\n"
|
||||
"%8d directories\n"
|
||||
"%8d character device files\n"
|
||||
|
Loading…
Reference in New Issue
Block a user