Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_e2fsprogs
Commits
636a954a
Commit
636a954a
authored
24 years ago
by
Theodore Ts'o
Browse files
Options
Download
Email Patches
Plain Diff
Use long long to calculate the percentage
of the number of blocks in use in the filesystem.
parent
acd8df68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
e2fsck/ChangeLog
e2fsck/ChangeLog
+5
-0
e2fsck/unix.c
e2fsck/unix.c
+2
-1
No files found.
e2fsck/ChangeLog
View file @
636a954a
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
...
...
This diff is collapsed.
Click to expand it.
e2fsck/unix.c
View file @
636a954a
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment